i haved written a simple module to practice the hook_menu. but it doesn't work. what's wrong with my code.
function mymenu1_menu(){
$item = array();
$item['mymenu/menu'] = array (
'description' =>'test1',
'page callback' => 'mymenu_test_access',
'access callback' => 'mymenu_is_test_access',
'type' =>MENU_NORMAL_ITEM,
);
return $item;
}
function mymenu_test_access(){
$output = 'you're logged';
return $output;
}
function mymenu_is_test_access(){
return $GLOBALS['user']->uid >0 ;
}
my module name is mymenu1, the module info file is right, the cache is cleared. but in the navigation part, i can't see the menu that i created. thank you.