summaryrefslogtreecommitdiff
path: root/modules/openid/openid.api.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-13 14:20:00 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-13 14:20:00 +0000
commit4c49bf4a56fc489cf77ffeda493b4f2d13e25c8e (patch)
tree2c9d340213330e5ba1888e0349b8bd9dad4ffd75 /modules/openid/openid.api.php
parentf8c8827b2416ad6d8b0a1beb4a58db66032a7508 (diff)
downloadbrdo-4c49bf4a56fc489cf77ffeda493b4f2d13e25c8e.tar.gz
brdo-4c49bf4a56fc489cf77ffeda493b4f2d13e25c8e.tar.bz2
- Patch #319840 by Aron Novak, darren.ferguson: added hook to the OpenID module for returning data when a user has logged in.
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".
*/