/[drupal]/drupal/modules/dblog/dblog.module
ViewVC logotype

Diff of /drupal/modules/dblog/dblog.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.31 by dries, Sun Dec 28 20:41:19 2008 UTC revision 1.32 by webchick, Thu Jan 8 08:42:12 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: dblog.module,v 1.30 2008/10/30 09:16:01 dries Exp $  // $Id: dblog.module,v 1.31 2008/12/28 20:41:19 dries Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 101  function dblog_cron() { Line 101  function dblog_cron() {
101  }  }
102    
103  /**  /**
104   * Implementation of hook_user_delete().   * Implementation of hook_user_cancel().
105   */   */
106  function dblog_user_delete(&$edit, &$user) {  function dblog_user_cancel(&$edit, &$account, $method) {
107    db_query('UPDATE {watchdog} SET uid = 0 WHERE uid = %d', $user->uid);    switch ($method) {
108        case 'user_cancel_reassign':
109          db_update('watchdog')->fields(array('uid' => 0))->condition('uid', $account->uid)->execute();
110          break;
111    
112        case 'user_cancel_delete':
113          db_delete('watchdog')->condition('uid', $account->uid)->execute();
114          break;
115      }
116  }  }
117    
118  function _dblog_get_message_types() {  function _dblog_get_message_types() {

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.3