user_module_invoke

5 user.module user_module_invoke($type, &$array, &$user, $category = NULL)
6 user.module user_module_invoke($op, &$edit, &$account, $category = NULL)
7 user.module user_module_invoke($type, &$edit, $account, $category = NULL)
8 user.module user_module_invoke($type, &$edit, $account)

Invokes hook_user() in every module.

We cannot use module_invoke() for this, because the arguments need to be passed by reference.

Parameters

$op: The operation to be passed as the first parameter of the hook function.

$edit: An associative array variable containing form values to be passed as the second parameter of the hook function.

$account: The user account object to be passed as the third parameter of the hook function.

$category: The category of user information being acted upon.

11 calls to user_module_invoke()

File

modules/user/user.module, line 28
Enables the user registration and login system.

Code

function user_module_invoke($op, &$edit, &$account, $category = NULL) {
  foreach (module_list() as $module) {
    $function = $module . '_user';
    if (function_exists($function)) {
      $function($op, $edit, $account, $category);
    }
  }
}
Login or register to post comments