You are here

protected function PartyUIController::overviewTableHeaders in Party 7

Same name and namespace in other branches
  1. 8.2 includes/party.ui.inc \PartyUIController::overviewTableHeaders()

Generates the table headers for the overview table.

Overrides EntityDefaultUIController::overviewTableHeaders

1 call to PartyUIController::overviewTableHeaders()
PartyHatPartyUIController::overviewTableHeaders in modules/party_hat/includes/party_hat.entity.inc
Generates the table headers for the overview table.
1 method overrides PartyUIController::overviewTableHeaders()
PartyHatPartyUIController::overviewTableHeaders in modules/party_hat/includes/party_hat.entity.inc
Generates the table headers for the overview table.

File

includes/party.ui.inc, line 115
Provides a controller for building a party overview form.

Class

PartyUIController
Controller for providing Party UI.

Code

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

  // Add operations with the right colspan.
  // $this->operationCount() returns 3 which is wrong: TODO: figure out why
  // it's wrong.
  $header[] = array(
    'data' => t('Operations'),
    'colspan' => 1,
  );
  return $header;
}