You are here

function nivo_slider_menu in Nivo Slider 7

Implements hook_menu().

File

./nivo_slider.module, line 78
Primarily Drupal hooks.

Code

function nivo_slider_menu() {
  $items['admin/structure/nivo-slider'] = array(
    'title' => 'Nivo Slider',
    'description' => 'Configure slider content and options.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'nivo_slider_slide_configuration_form',
    ),
    'access arguments' => array(
      'administer nivo slider',
    ),
    'file' => 'nivo_slider_slides.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/structure/nivo-slider/slides'] = array(
    'title' => 'Slides',
    'description' => 'Configure slider content.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'nivo_slider_slide_configuration_form',
    ),
    'access arguments' => array(
      'administer nivo slider',
    ),
    'file' => 'nivo_slider_slides.admin.inc',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/structure/nivo-slider/options'] = array(
    'title' => 'Options',
    'description' => 'Configure slider options.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'nivo_slider_option_configuration_form',
    ),
    'access arguments' => array(
      'administer nivo slider options',
    ),
    'file' => 'nivo_slider_options.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
  );
  return $items;
}