summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-02-06 14:50:05 +0000
committerDries Buytaert <dries@buytaert.net>2010-02-06 14:50:05 +0000
commit92aa9f427d16317a1bb63d33ae1537a9987e0f7a (patch)
tree411394c02ea137ebc6c3b88dffa698a58c5dfd9f
parent3b5df3f737896e1ad495005e1b68fef9e5879ddf (diff)
downloadbrdo-92aa9f427d16317a1bb63d33ae1537a9987e0f7a.tar.gz
brdo-92aa9f427d16317a1bb63d33ae1537a9987e0f7a.tar.bz2
- Patch #705310 by moshe weitzman: preserve watchdog entries during user cancel.
-rw-r--r--modules/dblog/dblog.admin.inc2
-rw-r--r--modules/dblog/dblog.module21
2 files changed, 1 insertions, 22 deletions
diff --git a/modules/dblog/dblog.admin.inc b/modules/dblog/dblog.admin.inc
index 37b1af247..0bee41955 100644
--- a/modules/dblog/dblog.admin.inc
+++ b/modules/dblog/dblog.admin.inc
@@ -46,7 +46,7 @@ function dblog_overview() {
);
$query = db_select('watchdog', 'w')->extend('PagerDefault')->extend('TableSort');
- $query->join('users', 'u', 'w.uid = u.uid');
+ $query->leftJoin('users', 'u', 'w.uid = u.uid');
$query
->fields('w', array('wid', 'uid', 'severity', 'type', 'timestamp', 'message', 'variables', 'link'))
->addField('u', 'name');
diff --git a/modules/dblog/dblog.module b/modules/dblog/dblog.module
index a36785f71..cbbd381a8 100644
--- a/modules/dblog/dblog.module
+++ b/modules/dblog/dblog.module
@@ -100,26 +100,6 @@ function dblog_cron() {
}
}
-/**
- * Implements hook_user_cancel().
- */
-function dblog_user_cancel($edit, $account, $method) {
- switch ($method) {
- case 'user_cancel_reassign':
- db_update('watchdog')
- ->fields(array('uid' => 0))
- ->condition('uid', $account->uid)
- ->execute();
- break;
-
- case 'user_cancel_delete':
- db_delete('watchdog')
- ->condition('uid', $account->uid)
- ->execute();
- break;
- }
-}
-
function _dblog_get_message_types() {
$types = array();
@@ -166,4 +146,3 @@ function dblog_form_system_logging_settings_alter(&$form, $form_state) {
);
$form['actions']['#weight'] = 1;
}
-