watchdog_user

Definition

watchdog_user($op, &$edit, &$user)
modules/watchdog.module, line 66

Description

Implementation of hook_user().

Code

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

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.