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

Contents of /contributions/modules/openid_service/openid_service.module

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


Revision 1.1 - (show annotations) (download) (as text)
Mon Nov 3 18:31:12 2008 UTC (12 months, 3 weeks ago) by aufumy
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
openid as identifier but not authentication
1 <?php
2 // $Id$
3 /**
4 * @file
5 * Openid login services module
6 */
7
8 /**
9 * Implementation of hook_help().
10 */
11 function openid_service_help($path, $arg) {
12 switch ($path) {
13 case 'admin/help#services_openid':
14 return '<p>'. t('Provides openid login method to services applications. Requires services.module.') .'</p>';
15 case 'admin/modules#description':
16 return t('Provides openid login method to services applications. Requires services.module.');
17 }
18 }
19
20 /**
21 * Implementation of hook_service().
22 */
23 function openid_service_service() {
24 return array(
25 // openid.login
26 array(
27 '#key' => TRUE,
28 '#method' => 'openid.login',
29 '#callback' => 'openid_service_login',
30 '#file' => array('file' => 'inc', 'module' => 'openid_service'),
31 '#args' => array(
32 array(
33 '#name' => 'openids',
34 '#type' => 'array',
35 '#description' => t('A valid openid, or comma separated openids.'),
36 '#size' => '',
37 '#signed' => '',
38 ),
39 ),
40 '#return' => 'struct',
41 '#help' => t('Logs in a user.')
42 ),
43
44 );
45 }

  ViewVC Help
Powered by ViewVC 1.1.2