diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-08 05:38:12 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-03-08 05:38:12 +0000 |
commit | 7b3ac6c13420908235175846843cbcb6ddcc1e42 (patch) | |
tree | 990d4c15d8ab220e487339539ac1defc2f2a00fd | |
parent | ce81be0c8c50b6939ee45d3860a0d190381068b2 (diff) | |
download | brdo-7b3ac6c13420908235175846843cbcb6ddcc1e42.tar.gz brdo-7b3ac6c13420908235175846843cbcb6ddcc1e42.tar.bz2 |
#345376 by jeffschuler: OpenID hook documentation. Yay. :D
-rw-r--r-- | modules/openid/openid.api.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/modules/openid/openid.api.php b/modules/openid/openid.api.php new file mode 100644 index 000000000..7b9be59b2 --- /dev/null +++ b/modules/openid/openid.api.php @@ -0,0 +1,36 @@ +<?php +// $Id$ + +/** + * @file + * Hooks provided by the OpenID module. + */ + +/** + * @addtogroup hooks + * @{ + */ + +/** + * Allow modules to modify the OpenID request parameters. + * + * @param $op + * The operation to be performed. + * Possible values: + * - request: Modify parameters before they are sent to the OpenID provider. + * @param $request + * An associative array of parameter defaults to which to modify or append. + * @return + * An associative array of parameters to be merged with the default list. + * + */ +function hook_openid($op, $request) { + if ($op == 'request') { + $request['openid.identity'] = 'http://myname.myopenid.com/'; + } + return $request; +} + +/** + * @} End of "addtogroup hooks". + */ |