From dcc3b38a817f2799aeb8001dd639aa177c043a32 Mon Sep 17 00:00:00 2001 From: Bob Vincent Date: Sat, 15 Oct 2011 13:07:37 -0400 Subject: [PATCH] Issue #1192178 by pillarsdotnet: Document parameters to user_module_invoke() function. --- modules/user/user.module | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/modules/user/user.module b/modules/user/user.module index 8917192b377088a82965441ce43f2dff2618b101..072e802d98e4ebe330b37bbb675baa8c5685bcbd 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); } } } -- 1.7.5.4