function role_watchdog_user_presave in Role Watchdog 7
Same name and namespace in other branches
- 7.2 role_watchdog.module \role_watchdog_user_presave()
Implements hook_user_presave().
File
- ./
role_watchdog.module, line 119 - Logs changes to user roles.
Code
function role_watchdog_user_presave(&$edit, $account, $category) {
if (isset($edit['roles'])) {
role_watchdog_user_save(isset($account->uid) ? $account->uid : FALSE, $edit, $account);
}
if (isset($account->uid) && array_key_exists('status', $edit)) {
role_watchdog_user_block($account, $edit['status']);
}
}