You are here

public function UnitsUnitUIController::overviewTableHeaders in Units of Measurement 7

Generates the table headers for the overview table.

Overrides EntityDefaultUIController::overviewTableHeaders

File

includes/UnitsUnitUIController.class.inc, line 71
Definition of UnitsUnitUIController class.

Class

UnitsUnitUIController
Admin UI controller class for entity type 'units_unit'.

Code

public function overviewTableHeaders($conditions, $rows, $additional_header = array()) {
  if ($this
    ->isFactorBased()) {
    $additional_header[] = array(
      'data' => t('Factor'),
      'class' => array(
        'units-overview-factor',
      ),
    );
  }
  return parent::overviewTableHeaders($conditions, $rows, $additional_header);
}