You are here

protected function GroupMembershipUIController::profileTableHeaders in Group 7

Generates the table headers for the type table.

1 call to GroupMembershipUIController::profileTableHeaders()
GroupMembershipUIController::profileTable in classes/group_membership.ui_controller.inc
Generates the render array for an overview table for member profiles.

File

classes/group_membership.ui_controller.inc, line 238
Defines the Entity API UI class for group memberships.

Class

GroupMembershipUIController
UI class for group memberships.

Code

protected function profileTableHeaders() {
  $op_count = count($this
    ->profileOperations());
  $header = array(
    'label' => t('Name'),
    'status' => t('Status'),
  );

  // Add the actions column only when necessary.
  if ($op_count > 0) {
    $header['actions'] = array(
      'data' => t('Actions'),
      'colspan' => $op_count,
    );
  }
  return $header;
}