You are here

function image_gallery_menu in Image 7

Same name and namespace in other branches
  1. 5.2 contrib/image_gallery/image_gallery.module \image_gallery_menu()
  2. 5 contrib/image_gallery/image_gallery.module \image_gallery_menu()
  3. 6 contrib/image_gallery/image_gallery.module \image_gallery_menu()

Implementation of hook_menu().

File

contrib/image_gallery/image_gallery.module, line 40

Code

function image_gallery_menu() {
  $items = array();
  $items['image'] = array(
    'title' => 'Image galleries',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_SUGGESTED_ITEM,
    'page callback' => 'image_gallery_page',
    'file' => 'image_gallery.pages.inc',
  );
  $items['admin/content/image'] = array(
    'title' => 'Image galleries',
    'access arguments' => array(
      'administer image galleries',
    ),
    'page callback' => 'image_gallery_admin',
    'file' => 'image_gallery.admin.inc',
    'description' => 'Create and manage image galleries.',
  );
  $items['admin/content/image/list'] = array(
    'title' => 'List',
    'access arguments' => array(
      'administer image galleries',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/content/image/add'] = array(
    'title' => 'Add gallery',
    'access arguments' => array(
      'administer image galleries',
    ),
    'page callback' => 'image_gallery_admin_edit',
    'file' => 'image_gallery.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/content/image/edit/%'] = array(
    'title' => 'Edit image gallery',
    'page callback' => 'image_gallery_admin_edit',
    'page arguments' => array(
      4,
    ),
    'file' => 'image_gallery.admin.inc',
    'access arguments' => array(
      'administer image galleries',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/image/image_gallery'] = array(
    'title' => 'Image gallery',
    'access arguments' => array(
      'administer site configuration',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'image_gallery_admin_settings',
    ),
    'file' => 'image_gallery.admin.inc',
    'description' => 'Configure appearance of image galleries.',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}