function vote_storylink_menu in Vote Up/Down 5
Implementation of hook_menu().
File
- ./
vote_storylink.module, line 73
Code
function vote_storylink_menu($may_cache) {
global $user;
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'storylink',
'title' => t('Story links'),
'callback' => 'vote_storylink_page',
'access' => user_access('access content'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'storylink/' . $user->uid,
'title' => t('My story links'),
'access' => user_access('create storylinks'),
'type' => MENU_DYNAMIC_ITEM,
);
}
return $items;
}