/[drupal]/contributions/modules/openid_ax/openid_ax.module
ViewVC logotype

Contents of /contributions/modules/openid_ax/openid_ax.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download) (as text)
Sun Aug 10 18:33:57 2008 UTC (15 months, 2 weeks ago) by anshuprateek
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-BETA1, HEAD
Changes since 1.7: +2 -7 lines
File MIME type: text/x-php
cleaning up the code
1 <?php
2 // $Id: openid_ax.module,v 1.7 2008/08/10 11:07:16 anshuprateek Exp $
3
4 /**
5 * @file Openid Attribute Exchange implementation for drupal
6 */
7
8 /**
9 * Implementation ofhook_menu()
10 */
11 function openid_ax_menu() {
12 $items['openid/ax'] = array(
13 'title' => 'Openid Attribute Exchange',
14 'page callback' => 'openid_ax_endpoint',
15 'type' => MENU_CALLBACK,
16 'file' => 'openid_ax.pages.inc',
17 'access callback' => TRUE
18 );
19 $items['openid/ax/continue'] = array(
20 'title' => 'OpenID Attribute Exchange',
21 'page callback' => 'openid_ax_continue',
22 'access callback' => TRUE,
23 'type' => MENU_CALLBACK,
24 'file' => 'openid_ax.pages.inc'
25 );
26 $items['openid/ax/send'] = array(
27 'title' => 'OpenID Attribute Exchange',
28 'page callback' => 'openid_ax_send',
29 'access callback' => TRUE,
30 'type' => MENU_CALLBACK,
31 'file' => 'openid_ax.pages.inc'
32 );
33 $items['user/%user/persona'] = array(
34 'title' => 'OpenID AX Personas',
35 'page callback' => 'openid_ax_persona',
36 'access callback' => TRUE,
37 'type' => MENU_LOCAL_TASK,
38 'file' => 'openid_ax.pages.inc'
39 );
40 $items['user/%user/persona/create'] = array(
41 'title' => 'Create OpenID AX Personas',
42 'page callback' => 'openid_ax_create_persona',
43 'access callback' => TRUE,
44 'type' => MENU_LOCAL_TASK,
45 'file' => 'openid_ax.pages.inc'
46 );
47 $items['user/%user/persona/manage'] = array(
48 'title' => 'Manage OpenID AX Personas',
49 'page callback' => 'openid_ax_manage_personas',
50 'access callback' => TRUE,
51 'type' => MENU_LOCAL_TASK,
52 'file' => 'openid_ax.pages.inc'
53 );
54 $items['user/%user/persona/rename'] = array(
55 'title' => 'Rename OpenID AX Personas',
56 'page callback' => 'openid_ax_rename_personas',
57 'access callback' => TRUE,
58 'type' => MENU_CALLBACK,
59 'file' => 'openid_ax.pages.inc'
60 );
61 $items['user/%user/persona/delete'] = array(
62 'title' => 'Delete OpenID AX Personas',
63 'page callback' => 'openid_ax_persona_delete',
64 'access callback' => TRUE,
65 'type' => MENU_CALLBACK,
66 'file' => 'openid_ax.pages.inc'
67 );
68 return $items;
69 }
70
71 /**
72 * Implementation of hook_openid()
73 */
74 function openid_ax_openid() {
75 $request['openid.ns.ax'] = 'http://openid.net/srv/ax/1.0';
76 $request['openid.ax.mode']='fetch_request';
77 $request['openid.ax.type.fname'] = 'http://openid.net/schema/namePerson/first';
78 $request['openid.ax.type.gender'] = 'http://openid.net/schema/gender';
79 $request['openid.ax.required'] = 'fname,gender';
80 return $request;
81 }

  ViewVC Help
Powered by ViewVC 1.1.2