user_module_invoke

Versions
4.6 – 6
user_module_invoke($type, &$array, &$user, $category = NULL)
7
user_module_invoke($type, &$edit, $account, $category = NULL)

Invokes hook_user() in every module.

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

▾ 2 functions call user_module_invoke()

user_login_finalize in modules/user/user.module
Finalize the login process. Must be called when logging in a user.
user_save in modules/user/user.module
Save changes to a user account or add a new user.

Code

modules/user/user.module, line 25

<?php
function user_module_invoke($type, &$edit, $account, $category = NULL) {
  foreach (module_implements('user_' . $type) as $module) {
    $function = $module . '_user_' . $type;
    $function($edit, $account, $category);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.