hook_info
developer/hooks/authentication.php, строка 74
- Версии
- 5
hook_info($field = 0)
Declare authentication scheme information.
This hook is required of authentication modules. It defines basic information about the authentication scheme.
Параметры
$field
The type of information requested. Possible values:
'name'
'protocol'
Возвращаемое значение
A string containing the requested piece of information. If $field
is not provided, an array containing all the fields should be returned.
Связанные темы
Код
<?php
function hook_info($field = 0) {
$info['name'] = 'Drupal';
$info['protocol'] = 'XML-RPC';
if ($field) {
return $info[$field];
}
else {
return $info;
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии