--- ../tmp/adminblock/adminblock.module Wed Nov 9 01:11:15 2005 +++ modules/adminblock.module Fri Jan 27 10:59:58 2006 @@ -51,7 +51,7 @@ function adminblock_block($op = 'list', $comment_count_display = $comment_count > $nlimit ? ' ('. $comment_count .')' : ''; $items = array(); while ($comment = db_fetch_object($result)) { - $items[] = $comment->subject .' - '. format_date($comment->timestamp, 'medium') .'
['. l(t('node'), 'node/'. $comment->nid, array('title' => $comment->title)) .']|['. l(t('edit'), 'admin/comment/edit/'. $comment->cid) .']|['. l(t('delete'), 'admin/comment/delete/'. $comment->cid) .']'; + $items[] = $comment->subject .' - '. format_date($comment->timestamp, 'medium') .'
['. l(t('node'), 'node/'. $comment->nid, array('title' => $comment->title)) .']|['. l(t('edit'), 'admin/comment/edit/'. $comment->cid) .']|['. l(t('delete'), 'admin/comment/delete/'. $comment->cid) .']'; } } @@ -65,17 +65,19 @@ function adminblock_block($op = 'list', $node_count_display = $node_count > $nlimit ? ' ('. $node_count .')' : ''; $items2 = array(); while ($node = db_fetch_object($result2)) { - $items2[] = $node->title .' - '. format_date($node->changed, 'medium'). '
['. l(t('By %user', array('%user' => $node->name)), 'user/'. $node->uid) .']|['. l(t('edit'), 'node/'. $node->nid .'/edit') .']|['. l(t('delete'), 'node/'. $node->nid .'/delete') .']'; + $items2[] = $node->title .' - '. format_date($node->changed, 'medium'). '
['. l(t('By %user', array('%user' => $node->name)), 'user/'. $node->uid) .']|['. l(t('edit'), 'node/'. $node->nid .'/edit') .']|['. l(t('delete'), 'node/'. $node->nid .'/delete') .']'; } } $block['subject'] = t('Admin block'); if ($items) { - $block['content'] = theme('item_list', $items, t('Comments queue') . $comment_count_display); + /* $block['content'] = theme('item_list', $items, t('Comments queue') . $comment_count_display); */ + $block['content'] = theme('links', $items, t('Comments queue') . $comment_count_display); $block['content'] .= ''; } if ($items2) { - $block['content'] .= theme('item_list', $items2, t('Content queue') . $node_count_display); + /* $block['content'] .= theme('item_list', $items2, t('Content queue') . $node_count_display); */ + $block['content'] .= theme('links', $items2, t('Content queue') . $node_count_display); $block['content'] .= ''; }