You are here

function shadowbox_menu in Shadowbox 5

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

Implementation of hook_menu().

File

./shadowbox.module, line 44
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' => 'drupal_get_form',
      'callback arguments' => array(
        'shadowbox_admin_settings',
      ),
      'access' => user_access('administer shadowbox'),
      'description' => 'Configure the settings for Shadowbox',
      'type' => MENU_NORMAL_ITEM,
    );
  }
  else {
    shadowbox_construct_header();
  }
  return $items;
}