Hey,
I wanted to use this module for my site, but it insists on creating a link to itself in the navigation block. My menus are currently set up so that it only appears to users who are logged in, so if the user is not logged in (and most aren't - only admin) then they should have a one panel view. I do want users to be able to use flexisearch though, and I've rceated a link to the flexisearch page in my primary links. The problem is that I can't disable the menu item, and so non-logged in users now have two panels, and the navigation panel has just this link. I don't think I can use this module if there isn't a way to fix this.
I'm assuming it has to do with this code, but I'm not familiar with drupal code...
thanks in advance

/**
* Implementation of hook_menu().
*/
function flexisearch_menu($may_cache) {
$items = array();

if ($may_cache) {
$items[] = array('path' => 'flexisearch', 'title' => t(variable_get('flexisearch_menu_title', 'Flexisearch')),
'callback' => 'flexisearch_view',
'access' => user_access('search flexinodes'),
'type' => MENU_DYNAMIC_ITEM);

}
return $items;
}

Comments

Dublin Drupaller’s picture

busy at the moment, but, if you change the last line in that code you posted from

from this:
'type' => MENU_DYNAMIC_ITEM);

to this:
'type' => MENU_SUGGESTED_ITEM);

It won't automatically insert a menu option.

Dub

(I'll update the module soon with that change. up to my eyes at the moment)

Dublin Drupaller’s picture

Status: Active » Closed (works as designed)