You are here

public function GroupMembershipExtraFieldsController::fieldExtraFields in Group 7

Implements EntityExtraFieldsControllerInterface::fieldExtraFields().

Overrides EntityDefaultExtraFieldsController::fieldExtraFields

File

classes/group_membership.extra_fields_controller.inc, line 15
Defines the Entity API extra fields class for group memberships.

Class

GroupMembershipExtraFieldsController
Controller for generating extra fields for group memberships.

Code

public function fieldExtraFields() {
  $extra = array();
  $extra['group_membership']['group_membership']['form']['roles'] = array(
    'label' => t('Group roles'),
    'description' => t('The roles the member has, will only show when you have access.'),
    'weight' => 20,
  );

  // @todo Loop over all profiles and add them here?
  return $extra;
}