You are here

function imagefield_crop_menu in Imagefield Crop 7.3

Same name and namespace in other branches
  1. 5 imagefield_crop.module \imagefield_crop_menu()

Implements hook_menu().

Return value

array

File

./imagefield_crop.module, line 962

Code

function imagefield_crop_menu() {
  $items = array();
  $items['admin/config/media/imagefield-crop-preset-list'] = array(
    'title' => 'Preset List',
    'page callback' => 'imagefield_crop_preset_list',
    'page arguments' => array(),
    'access arguments' => array(
      'access administration pages',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/media/imagefield-crop-preset-list/add'] = array(
    'title' => 'Add preset',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagefield_crop_preset_form',
    ),
    'access arguments' => array(
      'access administration pages',
    ),
    'type' => MENU_LOCAL_ACTION,
  );
  $items['admin/config/media/imagefield-crop-preset-list/%imagefield_crop_preset/edit'] = array(
    'title' => 'Edit preset',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'imagefield_crop_preset_form',
      4,
    ),
    'access arguments' => array(
      'access administration pages',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/media/imagefield-crop-preset-list/%imagefield_crop_preset/delete'] = array(
    'title' => 'Edit preset',
    'page callback' => 'imagefield_crop_preset_delete',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'access administration pages',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}