You are here

function galleria_menu in Galleria 7

Same name and namespace in other branches
  1. 6 galleria.module \galleria_menu()

Implements hook_menu().

File

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

Code

function galleria_menu() {
  $items = array();
  $items['admin/config/media/galleria'] = array(
    'title' => 'Galleria',
    'description' => 'Configure Galleria image galleries.',
    'page callback' => 'galleria_page_optionset_list',
    'access arguments' => array(
      'administer galleria',
    ),
    'file' => 'includes/galleria.admin.inc',
  );
  $items['admin/config/media/galleria/list'] = array(
    'title' => 'Option sets',
    'description' => 'List the current Galleria option sets.',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/config/media/galleria/add'] = array(
    'title' => 'Add option set',
    'description' => 'Add a new Galleria option set.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'galleria_form_optionset_add',
    ),
    'access arguments' => array(
      'administer galleria',
    ),
    'type' => MENU_LOCAL_ACTION,
    'weight' => 1,
    'file' => 'includes/galleria.admin.inc',
  );
  $items['admin/config/media/galleria/edit/%galleria_optionset'] = array(
    'title' => 'Edit option set',
    'description' => 'Configure an option set.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'galleria_form_optionset_edit',
      5,
    ),
    'access arguments' => array(
      'administer galleria',
    ),
    'file' => 'includes/galleria.admin.inc',
  );
  $items['admin/config/media/galleria/delete/%galleria_optionset'] = array(
    'title' => 'Delete option set',
    'description' => 'Delete an option set.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'galleria_optionset_form_delete',
      5,
    ),
    'access arguments' => array(
      'administer galleria',
    ),
    'file' => 'includes/galleria.admin.inc',
  );
  $items['admin/config/media/galleria/advanced'] = array(
    'title' => 'Advanced settings',
    'description' => 'Configure the advanced Galleria module settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'galleria_form_settings',
    ),
    'access arguments' => array(
      'administer galleria',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
    'file' => 'includes/galleria.admin.inc',
  );
  $items['admin/config/media/galleria/import'] = array(
    'title' => 'Import',
    'description' => 'Import Galleria option sets',
    'page callback' => 'galleria_form_optionset_import',
    'access arguments' => array(
      'administer galleria',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 3,
    'file' => 'includes/galleria.admin.inc',
  );
  $items['admin/config/media/galleria/export'] = array(
    'title' => 'Export',
    'description' => 'Export Galleria option sets',
    'page callback' => 'galleria_form_optionset_export',
    'access arguments' => array(
      'administer galleria',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 4,
    'file' => 'includes/galleria.admin.inc',
  );
  return $items;
}