You are here

function shadowbox_menu in Shadowbox 7.3

Same name and namespace in other branches
  1. 5.2 shadowbox.module \shadowbox_menu()
  2. 5 shadowbox.module \shadowbox_menu()
  3. 6.4 shadowbox.module \shadowbox_menu()
  4. 6 shadowbox.module \shadowbox_menu()
  5. 6.2 shadowbox.module \shadowbox_menu()
  6. 6.3 shadowbox.module \shadowbox_menu()
  7. 7.4 shadowbox.module \shadowbox_menu()

Implements hook_menu().

File

./shadowbox.module, line 117
Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue.

Code

function shadowbox_menu() {
  $items = array();
  $items['admin/config/media/shadowbox'] = array(
    'title' => 'Shadowbox',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'shadowbox_global_settings',
    ),
    'access arguments' => array(
      'administer shadowbox',
    ),
    'description' => 'Configure the settings for Shadowbox.',
    'file' => 'shadowbox.admin.inc',
  );
  $items['admin/config/media/shadowbox/global'] = array(
    'title' => 'Global',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'shadowbox_global_settings',
    ),
    'access arguments' => array(
      'administer shadowbox',
    ),
    'description' => 'Configure the settings for Shadowbox.',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
    'file' => 'shadowbox.admin.inc',
  );
  $items['admin/config/media/shadowbox/automatic'] = array(
    'title' => 'Auto handling',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'shadowbox_automatic_settings',
    ),
    'access arguments' => array(
      'administer shadowbox',
    ),
    'description' => 'Configure the Shadowbox automatic image handling settings.',
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
    'file' => 'shadowbox.admin.inc',
  );
  return $items;
}