blog_menu
- Versions
- 4.6 – 5
blog_menu($may_cache)- 6 – 7
blog_menu()
Implementation of hook_menu().
Code
modules/blog/blog.module, line 252
<?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;
}
?>Login or register to post comments 