You are here

function flexslider_menu in Flex Slider 7

Same name and namespace in other branches
  1. 7.2 flexslider.module \flexslider_menu()

Implements hook_menu().

File

./flexslider.module, line 71
A light-weight, customizable image gallery plugin for Drupal based on jQuery

Code

function flexslider_menu() {
  $items = array();
  $items['admin/config/media/flexslider'] = array(
    'title' => 'Flex Slider',
    'description' => 'Configure FlexSlider presets and display settings.',
    'page callback' => 'flexslider_page_optionset_list',
    'access arguments' => array(
      'administer flexslider',
    ),
    'file' => 'flexslider.admin.inc',
  );
  $items['admin/config/media/flexslider/list'] = array(
    'title' => 'Option sets',
    'description' => 'List the current flexslider option sets.',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/config/media/flexslider/add'] = array(
    'title' => 'Add option set',
    'description' => 'Add a new flexslider option set.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'flexslider_form_optionset_add',
    ),
    'access arguments' => array(
      'administer flexslider',
    ),
    'type' => MENU_LOCAL_ACTION,
    'weight' => 1,
    'file' => 'flexslider.admin.inc',
  );
  $items['admin/config/media/flexslider/edit/%flexslider_optionset'] = array(
    'title' => 'Edit option set',
    'description' => 'Configure an option set.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'flexslider_form_optionset_edit',
      5,
    ),
    'access arguments' => array(
      'administer flexslider',
    ),
    'file' => 'flexslider.admin.inc',
  );
  $items['admin/config/media/flexslider/delete/%flexslider_optionset'] = array(
    'title' => 'Delete option set',
    'description' => 'Delete an option set.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'flexslider_optionset_form_delete',
      5,
    ),
    'access arguments' => array(
      'administer flexslider',
    ),
    'file' => 'flexslider.admin.inc',
  );
  $items['admin/config/media/flexslider/advanced'] = array(
    'title' => 'Advanced settings',
    'description' => 'Configure the advanced flexslider module settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'flexslider_form_settings',
    ),
    'access arguments' => array(
      'administer flexslider',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
    'file' => 'flexslider.admin.inc',
  );
  $items['admin/config/media/flexslider/import'] = array(
    'title' => 'Import',
    'description' => 'Import Flex Slider option sets',
    'page callback' => 'flexslider_form_optionset_import',
    'access arguments' => array(
      'administer flexslider',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
    'file' => 'flexslider.admin.inc',
  );
  $items['admin/config/media/flexslider/export'] = array(
    'title' => 'Export',
    'description' => 'Export Flex Slider option sets',
    'page callback' => 'flexslider_form_optionset_export',
    'access arguments' => array(
      'administer flexslider',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
    'file' => 'flexslider.admin.inc',
  );
  return $items;
}