function hook_openid_response

Allow modules to act upon a successful OpenID login.

Parameters

$response: Response values from the OpenID Provider.

$account: The Drupal user account that logged in

Related topics

1 function implements hook_openid_response()

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

openid_test_openid_response in drupal/core/modules/openid/tests/openid_test.module
Implements hook_openid_response().
2 invocations of hook_openid_response()
openid_authentication in drupal/core/modules/openid/openid.module
Authenticate a user or attempt registration.
openid_user_identities in drupal/core/modules/openid/openid.pages.inc
Menu callback; Manage OpenID identities for the specified user.

File

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

Code

function hook_openid_response($response, $account) {
  if (isset($response['openid.ns.ax'])) {
    _mymodule_store_ax_fields($response, $account);
  }
}