function hook_user_update

7.x user.api.php hook_user_update(&$edit, $account, $category)

A user account was updated.

Modules may use this hook to update their user data in a custom storage after a user account has been updated.


$edit: The array of form values submitted by the user.

$account: The user object on which the operation is performed.

$category: The active category of user information being edited.

See also



Related topics

2 functions implement hook_user_update()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

entity_crud_hook_test_user_update in drupal/modules/simpletest/tests/entity_crud_hook_test.module
Implements hook_user_update().
trigger_user_update in drupal/modules/trigger/trigger.module
Implements hook_user_update().
3 invocations of hook_user_update()
field_attach_update in drupal/modules/field/
Save field data for an existing entity.
update_check_requirements in drupal/update.php
Checks update requirements and reports errors and (optionally) warnings.
user_save in drupal/modules/user/user.module
Save changes to a user account or add a new user.


drupal/modules/user/user.api.php, line 277
Hooks provided by the User module.


function hook_user_update(&$edit, $account, $category) {
    'uid' => $account->uid,
    'changed' => time(),