You are here

function gprofile_entity_info_alter in Group 7

Implements hook_entity_info_alter().

File

modules/gprofile/gprofile.entity.inc, line 77
Contains all Entity API functions for the Group member profiles module.

Code

function gprofile_entity_info_alter(&$entity_info) {

  // Informs Drupal that profile types are bundles for member profiles.
  foreach (gprofile_types() as $name => $gprofile_type) {
    $entity_info['gprofile']['bundles'][$name] = array(
      'label' => $gprofile_type->label,
      'admin' => array(
        'path' => 'admin/group/member/manage/%gprofile_type',
        'real path' => 'admin/group/member/manage/' . $name,
        'bundle argument' => 4,
        'access arguments' => array(
          'configure group module',
        ),
      ),
    );
  }
}