You are here

protected function GroupTypeUIController::typeTableHeaders in Group 7

Generates the table headers for the type table.

1 call to GroupTypeUIController::typeTableHeaders()
GroupTypeUIController::typeTable in classes/group_type.ui_controller.inc
Generates the render array for an overview table for group types.

File

classes/group_type.ui_controller.inc, line 219
Defines the Entity API UI class for group types.

Class

GroupTypeUIController
UI class for group types.

Code

protected function typeTableHeaders() {
  $header = array(
    'drag' => array(
      'data' => NULL,
      'colspan' => 2,
    ),
    'label' => t('Name'),
    'permissions' => array(
      'data' => t('Permissions'),
      'colspan' => 2,
    ),
    'status' => t('Status'),
  );

  // Add the actions column.
  $header['actions'] = array(
    'data' => t('Actions'),
    'colspan' => count($this
      ->typeOperations()),
  );
  return $header;
}