You are here

function group_hook_info in Group 7

Implements hook_hook_info().

Makes sure this module automatically finds exported Group entities in files using the module.group.inc name pattern.

Furthermore allows other exposed hooks to live inside the same file to boost performance when they are not required.

File

./group.module, line 60
Main module code for the Group project.

Code

function group_hook_info() {
  $group_hooks = array(
    'default_group_role',
    'default_group_type',
    'group_filters',
    'group_member_filters',
    'group_member_operations',
    'group_member_operation_links',
    'group_membership_action_info',
    'group_membership_metadata',
    'group_membership_profile_info',
    'group_membership_status_info',
    'group_operations',
    'group_operation_links',
    'group_permission',
    'group_uninstall',
  );
  foreach ($group_hooks as $hook) {
    $hook_info[$hook] = array(
      'group' => 'group',
    );
  }
  return $hook_info;
}