function finder_menu_element_allowed in Finder 7
Menu item access callback to hide the 'Finder element settings' tab when it shouldn't be shown (when the element ID arg isn't present).
Parameters
$arg: The arg (URL fragment) to be tested.
1 string reference to 'finder_menu_element_allowed'
- finder_menu in ./
finder.module - Implements hook_menu().
File
- ./
finder.module, line 137 - The finder module.
Code
function finder_menu_element_allowed($arg) {
return !empty($arg) && user_access('administer finder');
}