function bat_unit_views_pre_render in Booking and Availability Management Tools for Drupal 7
Same name and namespace in other branches
- 8 modules/bat_unit/bat_unit.module \bat_unit_views_pre_render()
Implements hook_views_pre_render().
File
- modules/
bat_unit/ bat_unit.module, line 473
Code
function bat_unit_views_pre_render(&$view) {
// Hide "Calendars" field until module "BAT Event UI" is enabled.
if ($view->name == 'unit_management' && !module_exists('bat_event_ui')) {
$view->field['calendars']->options['exclude'] = TRUE;
}
}