You are here

class GroupMembershipExtraFieldsController in Group 7

Controller for generating extra fields for group memberships.

Hierarchy

Expanded class hierarchy of GroupMembershipExtraFieldsController

1 string reference to 'GroupMembershipExtraFieldsController'
group_entity_info in ./group.entity.inc
Implements hook_entity_info().

File

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

View source
class GroupMembershipExtraFieldsController extends EntityDefaultExtraFieldsController {

  /**
   * Implements EntityExtraFieldsControllerInterface::fieldExtraFields().
   */
  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;
  }

}

Members