You are here

public function BatEventTypeUIController::hook_menu in Booking and Availability Management Tools for Drupal 7

Overrides hook_menu() defaults.

Overrides EntityDefaultUIController::hook_menu

File

modules/bat_event/bat_event_type.admin.inc, line 16
BatEvent type editing UI.

Class

BatEventTypeUIController
UI controller.

Code

public function hook_menu() {
  $items = parent::hook_menu();
  foreach ($items as &$item) {
    unset($item['access callback']);
    $item['access arguments'] = array(
      'administer bat_event_type entities',
    );
  }
  $items[$this->path]['description'] = 'Manage event types, including adding and removing fields and the display of fields.';
  $items[$this->path]['weight'] = '3';
  $items[$this->path]['type'] = MENU_LOCAL_TASK;
  return $items;
}