You are here

public function sweaver_plugin_images::sweaver_menu in Sweaver 7

Same name and namespace in other branches
  1. 6 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/config/user-interface/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/config/user-interface/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/config/user-interface/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/config/user-interface/sweaver/images/delete'] = $base + array(
    'title' => 'Add new image',
    'page arguments' => array(
      $page_arguments,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}