Index: drupal/modules/comment/comment.module =================================================================== RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v retrieving revision 1.529 diff -u -p -r1.529 comment.module --- drupal/modules/comment/comment.module 12 Mar 2007 13:08:02 -0000 1.529 +++ drupal/modules/comment/comment.module 20 Mar 2007 17:02:42 -0000 @@ -1175,10 +1175,11 @@ function comment_admin_overview($type = theme('table_select_header_cell'), array('data' => t('Subject'), 'field' => 'subject'), array('data' => t('Author'), 'field' => 'name'), + array('data' => t('IP Address'), 'field' => 'hostname'), array('data' => t('Time'), 'field' => 'timestamp', 'sort' => 'desc'), array('data' => t('Operations')) )); - $result = pager_query('SELECT c.subject, c.nid, c.cid, c.comment, c.timestamp, c.status, c.name, c.homepage, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE c.status = %d'. tablesort_sql($form['header']['#value']), 50, 0, NULL, $status); + $result = pager_query('SELECT c.subject, c.nid, c.cid, c.comment, c.hostname, c.timestamp, c.status, c.name, c.homepage, u.name AS registered_name, u.uid FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE c.status = %d'. tablesort_sql($form['header']['#value']), 50, 0, NULL, $status); // build a table listing the appropriate comments $destination = drupal_get_destination(); @@ -1187,6 +1188,7 @@ function comment_admin_overview($type = $comment->name = $comment->uid ? $comment->registered_name : $comment->name; $form['subject'][$comment->cid] = array('#value' => l($comment->subject, 'node/'. $comment->nid, array('title' => truncate_utf8($comment->comment, 128), 'fragment' => 'comment-'. $comment->cid))); $form['username'][$comment->cid] = array('#value' => theme('username', $comment)); + $form['hostname'][$comment->cid] = array('#value' => $comment->hostname); $form['timestamp'][$comment->cid] = array('#value' => format_date($comment->timestamp, 'small')); $form['operations'][$comment->cid] = array('#value' => l(t('edit'), 'comment/edit/'. $comment->cid, array('query' => $destination))); } @@ -1241,6 +1243,7 @@ function theme_comment_admin_overview($f $row[] = drupal_render($form['comments'][$key]); $row[] = drupal_render($form['subject'][$key]); $row[] = drupal_render($form['username'][$key]); + $row[] = drupal_render($form['hostname'][$key]); $row[] = drupal_render($form['timestamp'][$key]); $row[] = drupal_render($form['operations'][$key]); $rows[] = $row;