function hook_openid
7.x openid.api.php | hook_openid($op, $request) |
6.x core.php | hook_openid($op, $request) |
Allow modules to modify the OpenID request parameters.
Parameters
$op: The operation to be performed. Possible values:
- request: Modify parameters before they are sent to the OpenID provider.
$request: An associative array of parameter defaults to which to modify or append.
Return value
An associative array of parameters to be merged with the default list.
Related topics
1 invocation of hook_openid()
- openid_authentication_request in drupal-6.x/
modules/ openid/ openid.module
File
- documentation-6.x/
developer/ hooks/ core.php, line 1724 - These are the hooks that are invoked by the Drupal core.
Code
function hook_openid($op, $request) {
if ($op == 'request') {
$request['openid.identity'] = 'http://myname.myopenid.com/';
}
return $request;
}