| 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 |
}
|