You are here

protected function BatTypeUIController::overviewTableHeaders in Booking and Availability Management Tools for Drupal 7

Overrides overviewTableHeaders() defaults.

Overrides EntityDefaultUIController::overviewTableHeaders

File

modules/bat_unit/bat_type.admin.inc, line 189
BatType editing UI.

Class

BatTypeUIController
UI controller.

Code

protected function overviewTableHeaders($conditions, $rows, $additional_header = array()) {
  $header = array(
    t('ID'),
    t('Name'),
    t('Bundle'),
  );
  if (!empty($this->entityInfo['exportable'])) {
    $header[] = t('Status');
  }

  // Add operations with the right colspan.
  $header[] = array(
    'data' => t('Operations'),
    'colspan' => $this
      ->operationCount(),
  );
  return $header;
}