function juicebox_menu in Juicebox HTML5 Responsive Image Galleries 7.2
Same name and namespace in other branches
- 7 juicebox.module \juicebox_menu()
Implements hook_menu().
File
- ./
juicebox.module, line 20 - Provides Drupal integration with the Juicebox library. This file contains the relevant Drupal hook implementations and callbacks.
Code
function juicebox_menu() {
// Add menu item that produces the "config.xml" data that is linked to a
// specific gallery.
$items['juicebox/xml/%'] = array(
'title' => 'Juicebox XML',
'description' => 'Deliver configuration XML for a Juicebox gallery.',
'page callback' => 'juicebox_page_xml',
'page arguments' => array(
2,
),
// For efficiency we'll check access in parallel to other logic in the
// callback function, so we don't limit any access here.
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
// Add menu item for the global admin settings.
$items['admin/config/media/juicebox'] = array(
'title' => 'Juicebox',
'description' => 'Adjust global Juicebox settings.',
'file' => 'includes/juicebox.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'juicebox_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
);
return $items;
}