You are here

public function FlexiformUIController::overviewTable in Flexiform 7

Overrides overviewTable();

Overrides EntityDefaultUIController::overviewTable

1 call to FlexiformUIController::overviewTable()
FlexiformUIController::overviewForm in ./flexiform.admin.inc
Builds the entity overview form.

File

./flexiform.admin.inc, line 75
Model type editing UI.

Class

FlexiformUIController
UI controller.

Code

public function overviewTable($conditions = array()) {
  $entities = entity_load($this->entityType, FALSE, $conditions);
  ksort($entities);
  $rows = array();
  foreach ($entities as $entity) {
    $rows[] = $this
      ->overviewTableRow($conditions, entity_id($this->entityType, $entity), $entity);
  }
  $render = array(
    '#theme' => 'table',
    '#header' => $this
      ->overviewTableHeaders($conditions, $rows),
    '#rows' => $rows,
    '#empty' => t('None.'),
  );
  return $render;
}