You are here

function watchdog_user in Drupal 4

Same name and namespace in other branches
  1. 5 modules/watchdog/watchdog.module \watchdog_user()

Implementation of hook_user().

File

modules/watchdog.module, line 66
System monitoring and logging for administrators.

Code

function watchdog_user($op, &$edit, &$user) {
  if ($op == 'delete') {
    db_query('UPDATE {watchdog} SET uid = 0 WHERE uid = %d', $user->uid);
  }
}