By betolley on
I can not get my menu item to show up. When I enable it it has all areas empty. It does not like the path field. If I put admin in the field it points to the admin page.
function emailsearch_menu($may_cache) {
$items = array();
$items[] = array('path' => "emailsearch", 'title' => t('Email Search'),
'callback' => 'emailsearch_view',
'access' => user_access('access content'),
'type' => MENU_SUGGESTED_ITEM);
return $items;
}
Comments
Sorry wrong version it is
Sorry wrong version it is actually like this. By the way emailsearch is available if i type the info in to the menu form.
function emailsearch_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array('path' => 'emailsearch', 'title' => t('Email Search'),
'callback' => 'emailsearch_view',
'access' => user_access('search emailsearch'),
'type' => MENU_SUGGESTED_ITEM);
}
}