You are here

function image_styles_admin_menu in ImageCache Actions 7

Same name and namespace in other branches
  1. 8 image_styles_admin/image_styles_admin.module \image_styles_admin_menu()

Implements hook_menu().

File

image_styles_admin/image_styles_admin.module, line 28
Hook and callback implementations that must be available at all times.

Code

function image_styles_admin_menu() {
  $items = array();
  $items['admin/config/media/image-styles/duplicate/%image_style'] = array(
    'title' => 'Duplicate style',
    'description' => 'Make a copy of an image style.',
    'page callback' => 'image_styles_admin_duplicate_page_callback',
    'page arguments' => array(
      5,
    ),
    'access arguments' => array(
      'administer image styles',
    ),
    'file' => 'image_styles_admin.inc',
  );
  $items['admin/config/media/image-styles/export/%image_style'] = array(
    'title' => 'Export style',
    'description' => 'Export an image style.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'image_styles_admin_export_form',
      5,
    ),
    'access arguments' => array(
      'administer image styles',
    ),
    'file' => 'image_styles_admin.inc',
  );
  $items['admin/config/media/image-styles/import'] = array(
    'title' => 'Import style',
    'description' => 'Import an image style.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'image_styles_admin_import_form',
    ),
    'access callback' => 'image_styles_admin_access',
    'type' => MENU_LOCAL_ACTION,
    'weight' => 3,
    'file' => 'image_styles_admin.inc',
  );
  return $items;
}