function blog_menu in Drupal 5
Same name and namespace in other branches
- 4 modules/blog.module \blog_menu()
- 6 modules/blog/blog.module \blog_menu()
- 7 modules/blog/blog.module \blog_menu()
Implementation of hook_menu().
File
- modules/blog/ blog.module, line 252 
- Enables keeping an easily and regularly updated web page or a blog.
Code
function blog_menu($may_cache) {
  global $user;
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'blog',
      'title' => t('Blogs'),
      'callback' => 'blog_page',
      'access' => user_access('access content'),
      'type' => MENU_SUGGESTED_ITEM,
    );
    $items[] = array(
      'path' => 'blog/' . $user->uid,
      'title' => t('My blog'),
      'access' => user_access('edit own blog'),
      'type' => MENU_DYNAMIC_ITEM,
    );
  }
  return $items;
}