You are here

public function BatEventUIController::addPage in Booking and Availability Management Tools for Drupal 7

Create the markup for the add Event Entities page within the class so it can easily be extended/overriden.

File

modules/bat_event/bat_event.admin.inc, line 120
Unit event editing UI.

Class

BatEventUIController
UI controller.

Code

public function addPage() {
  $item = menu_get_item();
  $content = system_admin_menu_block($item);
  if (count($content) == 1) {
    $item = array_shift($content);
    drupal_goto($item['href']);
  }
  return array(
    '#theme' => 'bat_event_add_list',
    '#content' => $content,
  );
}