function hook_openid_normalization_method_info

Allow modules to declare OpenID normalization methods.

The discovery function callbacks will be called in turn with an unique parameter, the identifier to normalize. They have to return a normalized identifier, or NULL if the identifier is not in a form they can handle.

The first normalization method that succeed (return a value that is not NULL) will stop the normalization process.

Return value

An array with a set of function callbacks, that will be called in turn when normalizing an OpenID identifier. The normalization functions have to return a normalized identifier, or NULL if the identifier is not in a form they can handle.

See also

hook_openid_normalization_method_info_alter()

Related topics

1 function implements hook_openid_normalization_method_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

openid_openid_normalization_method_info in drupal/modules/openid/openid.module
Implements hook_openid_normalization_method_info().
1 invocation of hook_openid_normalization_method_info()
openid_normalize in drupal/modules/openid/openid.inc
Normalize the given identifier.

File

drupal/modules/openid/openid.api.php, line 100
Hooks provided by the OpenID module.

Code

function hook_openid_normalization_method_info() {
  return array(
    'new_normalization_idea' => '_my_normalization_method',
  );
}