From 562df8fe43f8794317c974dae463f5470cfdc497 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 9 Nov 2002 13:59:36 +0000 Subject: * Added Jeremy's pager: "This is a simple, generic pager for Drupal-CVS. It is designed to be easily themeable and expandable. The code is highly-commented to enhance readability." "Pagers are constructed by combining the provided pieces (all of which can be easily modified to display the text or image you prefer) into your custom pager." * Statistics module fixes by Jeremy: - removed superfluous check for existence of watchdog() - saving changes in admin page displays status and returns same page - no longer return 1971/01/01 in "view statistics" table - switched from "!=" to "<>" in SQL queries for ANSI-SQL compliance - switched from "MAX(timestamp) as timestamp" to "MAX(timestamp) as max_timestamp" moving towards ANSI-SQL compliance. * Added a "theme_item_list" function to format itemized lists. Also changed a couple of modules to take advantage of it. Makes for a more consistent UI. --- modules/blog.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/blog.module') diff --git a/modules/blog.module b/modules/blog.module index ef75b500d..b603884fc 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -343,10 +343,10 @@ function blog_block($op = "list", $delta = 0) { if (user_access("access content")) { $result = db_query("SELECT u.uid, u.name, n.created, n.title, n.nid FROM node n LEFT JOIN users u ON n.uid = u.uid WHERE n.type = 'blog' ORDER BY n.nid DESC LIMIT 10"); while ($node = db_fetch_object($result)) { - $output .= l(check_output($node->title), array("id" => $node->nid)) ."
\n"; + $items[] = l(check_output($node->title), array("id" => $node->nid)); } - $output .= "
". lm(t("more"), array("mod" => "blog"), "", array("title" => t("Read the latest blog entries."))) ."
"; - $block["content"] = $output; + + $block["content"] = theme_invoke("theme_item_list", $items) ."
". lm(t("more"), array("mod" => "blog"), "", array("title" => t("Read the latest blog entries."))) ."
"; $block["subject"] = t("User blogs"); } return $block; -- cgit v1.2.3