1 user.api.php | hook_user_update($account) |
Respond to updates to a user account.
Parameters
$account: The user account object.
See also
Related topics
File
- core/
modules/ user/ user.api.php, line 247 - Hooks provided by the User module.
Code
function hook_user_update($account) {
db_insert('user_changes')
->fields(array(
'uid' => $account->uid,
'changed' => REQUEST_TIME,
))
->execute();
}