You are here

function imagecache_ui_menu in ImageCache 6.2

Same name and namespace in other branches
  1. 5.2 imagecache_ui.module \imagecache_ui_menu()

Implementation of hook_menu().

File

./imagecache_ui.module, line 23

Code

function imagecache_ui_menu() {
  $items = array();
  $items['admin/build/imagecache'] = array(
    'title' => 'ImageCache',
    'file' => 'imagecache_ui.pages.inc',
    'description' => 'Administer imagecache presets and actions.',
    'page callback' => 'imagecache_ui_preset_overview',
    'access arguments' => array(
      'administer imagecache',
    ),
  );
  $items['admin/build/imagecache/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/build/imagecache/add'] = array(
    'title' => 'Add new preset',
    'file' => 'imagecache_ui.pages.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagecache_ui_preset_form',
    ),
    'access arguments' => array(
      'administer imagecache',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/build/imagecache/%imagecache_ui_preset'] = array(
    'title callback' => 'imagecache_preset_title_callback',
    'title arguments' => array(
      'Edit preset: !presetname',
      3,
    ),
    'file' => 'imagecache_ui.pages.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagecache_ui_preset_form',
      3,
    ),
    'access arguments' => array(
      'administer imagecache',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/imagecache/%imagecache_ui_preset/delete'] = array(
    'title callback' => 'imagecache_preset_title_callback',
    'title arguments' => array(
      'Delete preset: !presetname',
      3,
    ),
    'file' => 'imagecache_ui.pages.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagecache_ui_preset_delete_form',
      3,
    ),
    'access arguments' => array(
      'administer imagecache',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/imagecache/%imagecache_ui_preset/flush'] = array(
    'title callback' => 'imagecache_preset_title_callback',
    'title arguments' => array(
      'Flush preset: !presetname',
      3,
    ),
    'file' => 'imagecache_ui.pages.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagecache_ui_preset_flush_form',
      3,
    ),
    'access arguments' => array(
      'flush imagecache',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/imagecache/%imagecache_ui_preset/export'] = array(
    'title callback' => 'imagecache_preset_title_callback',
    'title arguments' => array(
      'Export preset: !presetname',
      3,
    ),
    'file' => 'imagecache_ui.pages.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagecache_ui_preset_export_form',
      3,
    ),
    'access arguments' => array(
      'administer imagecache',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/imagecache/%imagecache_ui_preset/override'] = array(
    'title callback' => 'imagecache_preset_title_callback',
    'title arguments' => array(
      'Override preset: !presetname',
      3,
    ),
    'file' => 'imagecache_ui.pages.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagecache_ui_preset_form',
      3,
      TRUE,
    ),
    'access arguments' => array(
      'administer imagecache',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/imagecache/%imagecache_ui_preset/add/%'] = array(
    'title callback' => 'imagecache_preset_title_callback',
    'title arguments' => array(
      'Add !actionname to !presetname',
      3,
      5,
    ),
    'file' => 'imagecache_ui.pages.inc',
    'page callback' => 'imagecache_ui_action_add_page',
    'page arguments' => array(
      3,
      5,
    ),
    'access arguments' => array(
      'administer imagecache',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/imagecache/%imagecache_ui_preset/%imagecache_action'] = array(
    'title callback' => 'imagecache_preset_title_callback',
    'title arguments' => array(
      '!action for preset !presetname',
      3,
      4,
    ),
    'file' => 'imagecache_ui.pages.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagecache_ui_action_form',
      3,
      4,
    ),
    'access arguments' => array(
      'administer imagecache',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/build/imagecache/%imagecache_ui_preset/%imagecache_action/delete'] = array(
    'title callback' => 'imagecache_preset_title_callback',
    'title arguments' => array(
      'Delete !action for preset !presetname',
      3,
      4,
    ),
    'file' => 'imagecache_ui.pages.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagecache_ui_action_delete_form',
      3,
      4,
    ),
    'access arguments' => array(
      'administer imagecache',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}