You are here

function statistics_user in Drupal 4

Same name and namespace in other branches
  1. 5 modules/statistics/statistics.module \statistics_user()
  2. 6 modules/statistics/statistics.module \statistics_user()

Implementation of hook_user().

File

modules/statistics.module, line 150
Logs access statistics for your site.

Code

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