You are here

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

Overrides hook_menu() defaults.

Overrides EntityDefaultUIController::hook_menu

File

modules/bat_unit/bat_unit_bundle.admin.inc, line 16
BatUnitBundle editing UI.

Class

BatUnitBundleUIController
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_unit_bundle entities',
    );
  }
  $items[$this->path]['description'] = 'Manage unit bundles, including adding and removing fields and the display of fields.';
  $items[$this->path]['weight'] = '3';
  return $items;
}