hook_info

  1. drupal
    1. 4.7
    2. 5
Versions
4.7 – 5 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

Code

developer/hooks/authentication.php, line 67

<?php
function hook_info($field = 0) {
  $info['name'] = 'Drupal';
  $info['protocol'] = 'XML-RPC';

  if ($field) {
    return $info[$field];
  }
  else {
    return $info;
  }
}
?>