| 5 authentication.php | hook_info($field = 0) |
Declare authentication scheme information.
This hook is required of authentication modules. It defines basic information about the authentication scheme.
Parameters
$field: The type of information requested. Possible values:
- "name"
- "protocol"
Return value
A string containing the requested piece of information. If $field is not provided, an array containing all the fields should be returned.
Related topics
14 functions implement hook_info()
2 invocations of hook_info()
File
- developer/
hooks/ authentication.php, line 66 - These hooks are defined by authentication modules, modules that define ways users can log on using accounts from other sites and servers.
Code
function hook_info($field = 0) {
$info['name'] = 'Drupal';
$info['protocol'] = 'XML-RPC';
if ($field) {
return $info[$field];
}
else {
return $info;
}
}
Login or register to post comments