summaryrefslogtreecommitdiffstats
path: root/print_mail
diff options
context:
space:
mode:
authorJoao Ventura2012-05-22 21:11:21 +0200
committerJoao Ventura2012-05-22 21:11:21 +0200
commitab193f753f5622ad5012ec3644398c33f30ac55f (patch)
tree4e1e1b332f30e54f42d60a0ed8c5b52b74f253c0 /print_mail
parent95f3e482518451137a605198b62a507603689957 (diff)
Use theme('item_list') to create the most* blocks.
Diffstat (limited to 'print_mail')
-rw-r--r--print_mail/print_mail.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/print_mail/print_mail.module b/print_mail/print_mail.module
index a5c025a..969bfdc 100644
--- a/print_mail/print_mail.module
+++ b/print_mail/print_mail.module
@@ -133,11 +133,11 @@ function print_mail_block_view($delta = 0) {
$result = db_query_range("SELECT path FROM {print_mail_page_counter} LEFT JOIN {node} ON path = CONCAT('node/', node.nid) WHERE status <> 0 OR status IS NULL ORDER BY sentcount DESC", 0, 3)
->fetchAll();
if (count($result)) {
- $block['content'] = '<div class="item-list"><ul>';
+ $items = array();
foreach ($result as $obj) {
- $block['content'] .= '<li>' . l(_print_get_title($obj->path), $obj->path) . '</li>';
+ $items[] = l(_print_get_title($obj->path), $obj->path);
}
- $block['content'] .= '</ul></div>';
+ $block['content'] = theme('item_list', array('items' => $items, 'type' => 'ul'));
}
break;
}