You are here

function statistics_user in Drupal 6

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

Implementation of hook_user().

File

modules/statistics/statistics.module, line 169
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);
  }
}