public function UnitsUnitUIController::overviewTableRow in Units of Measurement 7
Generates the row for the passed entity and may be overridden in order to customize the rows.
Parameters
$additional_cols: Additional columns to be added after the entity label column.
Overrides EntityDefaultUIController::overviewTableRow
File
- includes/
UnitsUnitUIController.class.inc, line 81 - Definition of UnitsUnitUIController class.
Class
- UnitsUnitUIController
- Admin UI controller class for entity type 'units_unit'.
Code
public function overviewTableRow($conditions, $id, $entity, $additional_cols = array()) {
if ($this
->isFactorBased()) {
$additional_cols[] = array(
'data' => check_plain($entity->factor),
'class' => array(
'units-overview-factor',
),
);
}
return parent::overviewTableRow($conditions, $id, $entity, $additional_cols);
}