summaryrefslogtreecommitdiff
path: root/modules/comment/comment.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-10-10 13:37:11 +0000
committerDries Buytaert <dries@buytaert.net>2009-10-10 13:37:11 +0000
commit15b24127b5abb1c66fb5a7579a07e00b571174b0 (patch)
tree0fb8cddc92f3a86c65d40a4be58d5dbcb43a020a /modules/comment/comment.admin.inc
parentdb53d99659801c539f1fa813af38bf65803ab8f2 (diff)
downloadbrdo-15b24127b5abb1c66fb5a7579a07e00b571174b0.tar.gz
brdo-15b24127b5abb1c66fb5a7579a07e00b571174b0.tar.bz2
- Patch #122098 by Damien Tournoud, catch, mdixoncm: split comment.timestamp into 'created' and 'changed' columns, just like for nodes.
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r--modules/comment/comment.admin.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc
index 07e19c7a3..150d0f71b 100644
--- a/modules/comment/comment.admin.inc
+++ b/modules/comment/comment.admin.inc
@@ -62,7 +62,7 @@ function comment_admin_overview($form, &$form_state, $arg) {
'subject' => array('data' => t('Subject'), 'field' => 'subject'),
'author' => array('data' => t('Author'), 'field' => 'name'),
'posted_in' => array('data' => t('Posted in'), 'field' => 'node_title'),
- 'time' => array('data' => t('Time'), 'field' => 'timestamp', 'sort' => 'desc'),
+ 'changed' => array('data' => t('Updated'), 'field' => 'changed', 'sort' => 'desc'),
'operations' => array('data' => t('Operations')),
);
@@ -72,7 +72,7 @@ function comment_admin_overview($form, &$form_state, $arg) {
$query->addField('u', 'name', 'registered_name');
$query->addField('n', 'title', 'node_title');
$result = $query
- ->fields('c', array('subject', 'nid', 'cid', 'comment', 'timestamp', 'status', 'name', 'homepage'))
+ ->fields('c', array('subject', 'nid', 'cid', 'comment', 'changed', 'status', 'name', 'homepage'))
->fields('u', array('uid'))
->condition('c.status', $status)
->limit(50)
@@ -89,7 +89,7 @@ function comment_admin_overview($form, &$form_state, $arg) {
'subject' => l($comment->subject, 'comment/' . $comment->cid, array('attributes' => array('title' => truncate_utf8($comment->comment, 128)), 'fragment' => 'comment-' . $comment->cid)),
'author' => theme('username', array('account' => $comment)),
'posted_in' => l($comment->node_title, 'node/' . $comment->nid),
- 'time' => format_date($comment->timestamp, 'short'),
+ 'changed' => format_date($comment->changed, 'short'),
'operations' => l(t('edit'), 'comment/edit/' . $comment->cid, array('query' => $destination)),
);
}