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