function juicebox_menu in Juicebox HTML5 Responsive Image Galleries 7
Same name and namespace in other branches
- 7.2 juicebox.module \juicebox_menu()
Implements hook_menu().
File
- ./
juicebox.module, line 13 - Provides Drupal integration with the Juicebox library.
Code
function juicebox_menu() {
$items = array();
// Add menu item that produces the "config.xml" data that is linked to a
// specific view or entity field.
$items['juicebox/xml/%'] = array(
'title' => 'Juicebox XML from view',
'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,
);
return $items;
}