You are here

function andromeda_slideshow_menu in Andromeda Slideshow 7

Same name and namespace in other branches
  1. 7.2 andromeda_slideshow.module \andromeda_slideshow_menu()

Implements hook_menu().

File

./andromeda_slideshow.module, line 18
Slideshow for the Andromeda (http://drupal.org/project/andromeda) Theme

Code

function andromeda_slideshow_menu() {
  $items = array();
  $items['admin/structure/slideshows'] = array(
    'title' => 'Slideshows',
    'description' => 'Manage slideshows.',
    'page callback' => 'andromeda_slideshow_admin',
    'type' => MENU_NORMAL_ITEM,
    'file' => 'includes/andromeda_slideshow.admin.inc',
  );
  $items['admin/structure/slideshows/manage'] = array(
    'title' => 'Manage',
    'description' => 'Manage slideshows',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'andromeda_slideshow_admin_form',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'file' => 'includes/andromeda_slideshow.admin.inc',
  );
  $items['admin/structure/slideshows/create'] = array(
    'title' => 'Create slideshow',
    'description' => 'Create a new slideshow.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'andromeda_slideshow_form',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'includes/andromeda_slideshow.forms.inc',
    'weight' => 10,
  );
  $items['admin/structure/slideshows/edit/%andromeda_slideshow'] = array(
    'title' => 'Edit slideshow',
    'description' => 'Edit a slideshow.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'andromeda_slideshow_form',
      4,
    ),
    'file' => 'includes/andromeda_slideshow.forms.inc',
    'weight' => 10,
  );
  $items['admin/structure/slideshows/delete/%andromeda_slideshow'] = array(
    'title' => 'Delete slideshow',
    'description' => 'Delete a slideshow.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'andromeda_slideshow_delete_form',
      4,
    ),
    'file' => 'includes/andromeda_slideshow.forms.inc',
    'weight' => 10,
  );
  $items['admin/structure/slideshows/manage/%andromeda_slideshow'] = array(
    'title' => 'Manage slideshow',
    'description' => 'Manage a slideshow.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'andromeda_slideshow_manage_form',
      4,
    ),
    'file' => 'includes/andromeda_slideshow.forms.inc',
    'weight' => 10,
  );
  $items['admin/structure/slideshows/enable/%'] = array(
    'title' => 'Enable slideshow',
    'description' => 'Enable a slideshow.',
    'page callback' => 'andromeda_slideshow_enable_slideshow',
    'page arguments' => array(
      4,
      'admin/structure/slideshows',
    ),
    'file' => 'includes/andromeda_slideshow.inc',
    'weight' => 10,
  );
  $items['admin/structure/slideshows/disable/%'] = array(
    'title' => 'Enable slideshow',
    'description' => 'Enable a slideshow.',
    'page callback' => 'andromeda_slideshow_disable_slideshow',
    'page arguments' => array(
      4,
      'admin/structure/slideshows',
    ),
    'file' => 'includes/andromeda_slideshow.inc',
    'weight' => 10,
  );
  $items['admin/structure/slideshows/manage/%andromeda_slideshow/add'] = array(
    'title' => 'Add an image',
    'description' => 'Add an image.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'andromeda_slideshow_image_form',
      4,
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'includes/andromeda_slideshow.forms.inc',
    'weight' => 10,
  );
  $items['admin/structure/slideshows/manage/%andromeda_slideshow/edit/%andromeda_slideshow_image'] = array(
    'title' => 'Edit an image',
    'description' => 'Edit an image.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'andromeda_slideshow_image_form',
      4,
      6,
    ),
    'file' => 'includes/andromeda_slideshow.forms.inc',
    'weight' => 10,
  );
  $items['admin/structure/slideshows/manage/%andromeda_slideshow/delete/%andromeda_slideshow_image'] = array(
    'title' => 'Delete an image',
    'description' => 'Delete an image.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'andromeda_slideshow_image_delete_form',
      4,
      6,
    ),
    'file' => 'includes/andromeda_slideshow.forms.inc',
    'weight' => 10,
  );
  foreach ($items as $path => $item) {
    if (!isset($item['access callback'])) {
      $items[$path]['access callback'] = 'user_access';
      $items[$path]['access arguments'] = array(
        'manage slideshows',
      );
    }
  }
  return $items;
}