summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2011-11-23 09:23:32 (GMT)
committer Gábor Hojtsy2011-11-23 09:23:32 (GMT)
commitac8284c7d89a57ac0845079eff049912072df4c4 (patch)
tree3aa710f7707b18f32bda1980c390fb677622717d
parent176f21ba1c748dc9d2562834f638a89016ca9a57 (diff)
Issue #1192178 by pillarsdotnet, jhodgdon: fix user_module_invoke() argument names to make more sense and phpdoc to document them (no behavioral change of course)
-rw-r--r--modules/user/user.module15
1 files changed, 13 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 91dfde2..dbdc5cb 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -13,12 +13,23 @@ define('EMAIL_MAX_LENGTH', 64);
*
* We cannot use module_invoke() for this, because the arguments need to
* be passed by reference.
+ *
+ * @param $op
+ * The operation to be passed as the first parameter of the hook function.
+ * @param $edit
+ * An associative array variable containing form values to be passed
+ * as the second parameter of the hook function.
+ * @param $account
+ * The user account object to be passed as the third parameter of the hook
+ * function.
+ * @param $category
+ * The category of user information being acted upon.
*/
-function user_module_invoke($type, &$array, &$user, $category = NULL) {
+function user_module_invoke($op, &$edit, &$account, $category = NULL) {
foreach (module_list() as $module) {
$function = $module .'_user';
if (function_exists($function)) {
- $function($type, $array, $user, $category);
+ $function($op, $edit, $account, $category);
}
}
}