I am trying to set up a new menu item in Drupal 7 and not having any luck. I've tried several examples and have been successful at this in the past, but this is just not working.
The following code is in a module called directory, I keep getting a "page not found" error.
function directory_menu() {
$items=array();
$items['directory'] = array(
'title' => 'Employee Directory',
'page callback' => 'directory_content',
'access arguments' => array('access content'),
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
function directory_content() {
$content = array();
$content['raw_markup'] = array(
'#type' => 'markup',
'#markup' => 'Testing',
);
return $content;
}
hook_menu()
dsm($item);
into the menu hook and flush the caches. If you see your item, the hook is being called, and obviously if not, it's not