You are here

function image_menu in Image 6

Same name and namespace in other branches
  1. 5.2 image.module \image_menu()
  2. 5 image.module \image_menu()

Implementation of hook_menu

File

./image.module, line 114

Code

function image_menu() {
  $items = array();
  $items['image/view'] = array(
    'title' => 'image',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'page callback' => 'image_fetch',
  );
  $items['admin/settings/image'] = array(
    'title' => 'Images',
    'description' => 'Configure the location of image files and image sizes. Also, if enabled, configure image attachments and options for image galleries and image imports.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'image_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'image.admin.inc',
  );
  $items['admin/settings/image/nodes'] = array(
    'title' => 'Files and sizes',
    'description' => 'Configure the location of image files and image sizes.',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => '-10',
  );
  return $items;
}