statistics_user_cancel

Versions
7
statistics_user_cancel($edit, $account, $method)

Implements hook_user_cancel().

Code

modules/statistics/statistics.module, line 202

<?php
function statistics_user_cancel($edit, $account, $method) {
  switch ($method) {
    case 'user_cancel_reassign':
      db_update('accesslog')
        ->fields(array('uid' => 0))
        ->condition('uid', $account->uid)
        ->execute();
      break;

    case 'user_cancel_delete':
      db_delete('accesslog')
        ->condition('uid', $account->uid)
        ->execute();
      break;
  }
}
?>
Login or register to post comments
 
 

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.