summaryrefslogtreecommitdiff
path: root/modules/openid/openid.api.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/openid/openid.api.php')
-rw-r--r--modules/openid/openid.api.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/openid/openid.api.php b/modules/openid/openid.api.php
index 41f099148..2144945ee 100644
--- a/modules/openid/openid.api.php
+++ b/modules/openid/openid.api.php
@@ -32,5 +32,20 @@ function hook_openid($op, $request) {
}
/**
+ * Allow modules to act upon a successful OpenID login.
+ *
+ * @param $response
+ * Response values from the OpenID Provider.
+ * @param $account
+ * The Drupal user account that logged in
+ *
+ */
+function hook_openid_response($response, $account) {
+ if (isset($response['openid.ns.ax'])) {
+ _mymodule_store_ax_fields($response, $account);
+ }
+}
+
+/**
* @} End of "addtogroup hooks".
*/