blog_menu
Definition
blog_menu($may_cache)
modules/blog/blog.module, line 252
Description
Implementation of hook_menu().
Code
<?php
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;
}
?> 