You are here

function user_module_invoke in Drupal 4

Same name and namespace in other branches
  1. 5 modules/user/user.module \user_module_invoke()
  2. 6 modules/user/user.module \user_module_invoke()
  3. 7 modules/user/user.module \user_module_invoke()

Invokes hook_user() in every module.

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

7 calls to user_module_invoke()
user_edit_submit in modules/user.module
user_edit_validate in modules/user.module
user_load in modules/user.module
Fetch a user object.
user_login_submit in modules/user.module
user_pass_reset in modules/user.module
Menu callback; process one time login link and redirects to the user page on success.

... See full list

File

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

Code

function user_module_invoke($type, &$array, &$user, $category = NULL) {
  foreach (module_list() as $module) {
    $function = $module . '_user';
    if (function_exists($function)) {
      $function($type, $array, $user, $category);
    }
  }
}