protected function EntityDefaultUIController::overviewTableHeaders in Entity API 7
Generates the table headers for the overview table.
1 call to EntityDefaultUIController::overviewTableHeaders()
- EntityDefaultUIController::overviewTable in includes/
entity.ui.inc - Generates the render array for a overview table for arbitrary entities matching the given conditions.
File
- includes/
entity.ui.inc, line 242 - Provides a controller for building an entity overview form.
Class
- EntityDefaultUIController
- Default UI controller providing admin UI.
Code
protected function overviewTableHeaders($conditions, $rows, $additional_header = array()) {
$header = $additional_header;
array_unshift($header, t('Label'));
if (!empty($this->entityInfo['exportable'])) {
$header[] = t('Status');
}
// Add operations with the right colspan.
$header[] = array(
'data' => t('Operations'),
'colspan' => $this
->operationCount(),
);
return $header;
}