function sweaver_menu_access_callback in Sweaver 7
Sweaver menu access callback.
Parameters
$args: A collection of arguments.
1 string reference to 'sweaver_menu_access_callback'
- sweaver_plugin_toolbar::sweaver_menu in plugins/
sweaver_plugin_toolbar/ sweaver_plugin_toolbar.inc - Menu registry.
File
- ./
sweaver.module, line 755 - Sweaver functions.
Code
function sweaver_menu_access_callback($args) {
$plugin_name = array_shift($args);
$callback_access_method = array_shift($args);
$callback_access_method = !empty($callback_access_method) ? $callback_access_method : 'sweaver_menu_access_callback';
if ($sweaver_plugin = Sweaver::get_instance()
->get_plugin($plugin_name, TRUE)) {
return $sweaver_plugin
->{$callback_access_method}($args);
}
return FALSE;
}