function bat_unit_page_view in Booking and Availability Management Tools for Drupal 7
Sets up content to show an individual unit.
1 string reference to 'bat_unit_page_view'
- BatUnitUIController::hook_menu in modules/
bat_unit/ bat_unit.admin.inc - Overrides hook_menu() defaults.
File
- modules/
bat_unit/ bat_unit.module, line 943
Code
function bat_unit_page_view($unit, $view_mode = 'full') {
$controller = entity_get_controller('bat_unit');
$content = $controller
->view(array(
$unit->unit_id => $unit,
), $view_mode);
drupal_set_title($unit->name);
return $content;
}