? blog_list.patch Index: blog_list.info =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/blog_list/blog_list.info,v retrieving revision 1.1 diff -u -p -r1.1 blog_list.info --- blog_list.info 26 Feb 2008 22:08:23 -0000 1.1 +++ blog_list.info 10 Feb 2009 14:42:52 -0000 @@ -1,4 +1,6 @@ ; $Id: blog_list.info,v 1.1 2008/02/26 22:08:23 noelbush Exp $ name = Blog List description = "Provides a list of blogs on your site." -dependencies = blog +dependencies[] = blog +core = 6.x +php = 4.x Index: blog_list.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/blog_list/blog_list.module,v retrieving revision 1.1 diff -u -p -r1.1 blog_list.module --- blog_list.module 26 Feb 2008 22:08:23 -0000 1.1 +++ blog_list.module 10 Feb 2009 14:42:52 -0000 @@ -14,15 +14,14 @@ * @see hook_menu() * @return an array containing the menu item */ -function blog_list_menu($may_cache) { - global $user; +function blog_list_menu() { $items = array(); - if ($may_cache) { - $items[] = array('path' => 'blogs', 'title' => t('Blogs'), - 'callback' => 'blog_list_blog_list', - 'access' => user_access('access content'), - 'type' => MENU_SUGGESTED_ITEM); - } + $items['blogs'] = array( + 'title' => t('Blogs'), + 'page callback' => 'blog_list_blog_list', + 'access arguments' => array('access content'), + 'type' => MENU_SUGGESTED_ITEM + ); return $items; } @@ -35,23 +34,48 @@ function blog_list_menu($may_cache) { function blog_list_blog_list() { global $user; - $output = '
| User |
|---|
| ' . l($row['name'], 'blog/' . $row['uid']) . ' | ' . - '