public function sweaver_plugin_images::sweaver_menu in Sweaver 6
Same name and namespace in other branches
- 7 plugins/sweaver_plugin_images/sweaver_plugin_images.inc \sweaver_plugin_images::sweaver_menu()
Menu registry.
Overrides sweaver_plugin::sweaver_menu
File
- plugins/
sweaver_plugin_images/ sweaver_plugin_images.inc, line 12 - Images plugin.
Class
- sweaver_plugin_images
- @file Images plugin.
Code
public function sweaver_menu(&$weight, $page_arguments, $base) {
$items = array();
$items['admin/settings/sweaver/images'] = $base + array(
'title' => 'Images',
'page arguments' => array(
$page_arguments,
),
'type' => MENU_LOCAL_TASK,
'weight' => $weight++,
);
$page_arguments['callback_method'] = 'sweaver_images_backend_form';
$items['admin/settings/sweaver/images/add'] = $base + array(
'title' => 'Add new image',
'page arguments' => array(
$page_arguments,
),
'type' => MENU_CALLBACK,
);
$page_arguments['callback_method'] = 'sweaver_images_backend_form';
$items['admin/settings/sweaver/images/edit'] = $base + array(
'title' => 'Edit image',
'page arguments' => array(
$page_arguments,
),
'type' => MENU_CALLBACK,
);
$page_arguments['callback_method'] = 'sweaver_images_confirm_form_delete';
$items['admin/settings/sweaver/images/delete'] = $base + array(
'title' => 'Add new image',
'page arguments' => array(
$page_arguments,
),
'type' => MENU_CALLBACK,
);
return $items;
}