hook_openid
function hook_openid
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
File
- modules/openid/openid.api.php, line 26
- Hooks provided by the OpenID module.
Code
function hook_openid($op, $request) { if ($op == 'request') { $request['openid.identity'] = 'http://myname.myopenid.com/'; } return $request; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!openid!openid.api.php/function/hook_openid/7.x