summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-06-29 23:56:09 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-06-29 23:56:09 -0700
commit41efebcf07ab869c1972698a40ca116ef8227c64 (patch)
tree4f8ad693fe88276f3201d4c674d9da499c0212d3
parent0f9c1354d1077e5d13dc57090de802b00b0adbe4 (diff)
downloadbrdo-41efebcf07ab869c1972698a40ca116ef8227c64.tar.gz
brdo-41efebcf07ab869c1972698a40ca116ef8227c64.tar.bz2
Issue #1192178 by pillarsdotnet: Changed The user_module_invoke() function lacks documentation of parameters.
-rw-r--r--modules/user/user.module18
1 files changed, 17 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index e5fdb77b8..044ad4698 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -74,10 +74,26 @@ function user_help($path, $arg) {
}
/**
- * Invokes hook_user() in every module.
+ * Invokes a user hook in every module.
*
* We cannot use module_invoke() for this, because the arguments need to
* be passed by reference.
+ *
+ * @param $type
+ * A text string that controls which user hook to invoke. Valid choices are:
+ * - cancel: Invokes hook_user_cancel().
+ * - insert: Invokes hook_user_insert().
+ * - login: Invokes hook_user_login().
+ * - presave: Invokes hook_user_presave().
+ * - update: Invokes hook_user_update().
+ * @param $edit
+ * An associative array variable containing form values to be passed
+ * as the first parameter of the hook function.
+ * @param $account
+ * The user account object to be passed as the second parameter of the hook
+ * function.
+ * @param $category
+ * The category of user information being acted upon.
*/
function user_module_invoke($type, &$edit, $account, $category = NULL) {
foreach (module_implements('user_' . $type) as $module) {