function shadowbox_menu in Shadowbox 6.2
Same name and namespace in other branches
- 5.2 shadowbox.module \shadowbox_menu()
- 5 shadowbox.module \shadowbox_menu()
- 6.4 shadowbox.module \shadowbox_menu()
- 6 shadowbox.module \shadowbox_menu()
- 6.3 shadowbox.module \shadowbox_menu()
- 7.4 shadowbox.module \shadowbox_menu()
- 7.3 shadowbox.module \shadowbox_menu()
Implementation of hook_menu().
File
- ./
shadowbox.module, line 58 - Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue.
Code
function shadowbox_menu() {
$items = array();
$items['admin/settings/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.',
);
$items['admin/settings/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,
);
$items['admin/settings/shadowbox/automatic'] = array(
'title' => 'Auto image handling',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'shadowbox_automatic_settings',
),
'access arguments' => array(
'administer shadowbox',
),
'description' => 'Configure the Shadwobox automatic image handling settings.',
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
return $items;
}