function bat_menu in Booking and Availability Management Tools for Drupal 7
Implements hook_menu().
File
- ./
bat.module, line 27 - Provides basic underlying functionality and configuration options used by all BAT modules.
Code
function bat_menu() {
$items = array();
// Top level "BAT" container.
$items['admin/bat'] = array(
'title' => 'BAT',
'description' => 'Administer BAT.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'access administration pages',
),
'file path' => drupal_get_path('module', 'system'),
'file' => 'system.admin.inc',
'weight' => -7,
);
$items['admin/bat/config'] = array(
'title' => 'Configuration',
'description' => 'Configure settings and business rules for BAT management.',
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array(
'configure bat settings',
),
'type' => MENU_NORMAL_ITEM,
'weight' => 10,
'file path' => drupal_get_path('module', 'system'),
'file' => 'system.admin.inc',
);
$items['admin/bat/config/date-format'] = array(
'title' => 'Date format',
'description' => 'Configure date format.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bat_date_format_form',
),
'access arguments' => array(
'configure bat settings',
),
'type' => MENU_NORMAL_ITEM,
'weight' => 30,
);
return $items;
}