You are here

protected function GroupMembershipUIController::profileTable in Group 7

Generates the render array for an overview table for member profiles.

Return value

array A renderable array.

1 call to GroupMembershipUIController::profileTable()
GroupMembershipUIController::overviewForm in classes/group_membership.ui_controller.inc
Builds the entity overview form.

File

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

Class

GroupMembershipUIController
UI class for group memberships.

Code

protected function profileTable() {
  $rows = array();
  foreach ($this->profile_info as $name => $profile) {
    $row = $this
      ->profileTableRow($name, $profile);
    $rows[$name] = $row;
  }
  $table = array(
    '#theme' => 'table',
    '#header' => $this
      ->profileTableHeaders(),
    '#rows' => $rows,
    '#attributes' => array(
      'id' => 'group-member-profile-table',
    ),
  );
  return $table;
}