hook_openid_discovery_method_info

  1. drupal
    1. 7
Versions
7 hook_openid_discovery_method_info()

Allow modules to declare OpenID discovery methods.

The discovery function callbacks will be called in turn with an unique parameter, the claimed identifier. They have to return an array of services, in the same form returned by openid_discover().

The first discovery method that succeed (return at least one services) will stop the discovery process.

Return value

An associative array which keys are the name of the discovery methods and values are function callbacks.

See also

hook_openid_discovery_method_info_alter()

Related topics

Code

drupal/modules/openid/openid.api.php, line 64

<?php
function hook_openid_discovery_method_info() {
  return array(
    'new_discovery_idea' => '_my_discovery_method',
  );
}
?>