You are here

function group_membership_profile_info in Group 7

Get the group membership profile information.

Return value

array An array of group membership profile info as provided by hook_group_membership_profile_info().

See also

hook_group_membership_profile_info()

1 call to group_membership_profile_info()
GroupMembershipUIController::__construct in classes/group_membership.ui_controller.inc
Class constructor.
1 string reference to 'group_membership_profile_info'
group_hook_info in ./group.module
Implements hook_hook_info().

File

helpers/group.inc, line 232
Group related helper functions.

Code

function group_membership_profile_info() {
  $profiles =& drupal_static(__FUNCTION__);
  if (!isset($profiles)) {
    $info = entity_get_info('group_membership');
    $profiles['group_membership'] = array(
      'label' => t('Default profile'),
      'entity status' => ENTITY_FIXED,
      'path' => $info['bundles']['group_membership']['admin']['path'],
    );
    $profiles += module_invoke_all('group_membership_profile_info');
  }
  return $profiles;
}