function shadowbox_menu in Shadowbox 5.2
Same name and namespace in other branches
- 5 shadowbox.module \shadowbox_menu()
- 6.4 shadowbox.module \shadowbox_menu()
- 6 shadowbox.module \shadowbox_menu()
- 6.2 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($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/shadowbox',
'title' => 'Shadowbox',
'callback' => 'shadowbox_settings_page',
'access' => user_access('administer shadowbox'),
'description' => t('Configure the settings for Shadowbox.'),
);
$items[] = array(
'path' => 'admin/settings/shadowbox/global',
'title' => t('Global'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'shadowbox_global_settings',
),
'access' => user_access('administer shadowbox'),
'description' => t('Configure the settings for Shadowbox.'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items[] = array(
'path' => 'admin/settings/shadowbox/automatic',
'title' => t('Auto image handling'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'shadowbox_automatic_settings',
),
'access' => user_access('administer shadowbox'),
'description' => t('Configure the Shadwobox automatic image handling settings.'),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
}
else {
shadowbox_construct_header();
}
return $items;
}