public function sweaver_plugin_toolbar::sweaver_menu in Sweaver 7
Menu registry.
Overrides sweaver_plugin::sweaver_menu
File
- plugins/
sweaver_plugin_toolbar/ sweaver_plugin_toolbar.inc, line 12 - Toolbar plugin.
Class
- sweaver_plugin_toolbar
- @file Toolbar plugin.
Code
public function sweaver_menu(&$weight, $page_arguments, $base) {
$items = array();
// Theme classes groups administration.
$base['access arguments'] = array(
array(
'sweaver_plugin_toolbar',
'sweaver_menu_access_callback',
'use editor',
),
);
$items['admin/sweaver'] = $base + array(
'title' => 'Sweaver',
'page arguments' => array(
$page_arguments,
),
'access callback' => 'sweaver_menu_access_callback',
'weight' => -6,
);
return $items;
}