You are here

function party_hook_info in Party 7

Implements hook_hook_info().

File

./party.module, line 551
Provides a generic CRM party entity.

Code

function party_hook_info() {

  // General hooks that are called frequently on operations or page builds.
  $hooks['party_access'] = array(
    'group' => 'party',
  );
  $hooks['party_data_set_attach'] = array(
    'group' => 'party',
  );
  $hooks['party_data_set_detach'] = array(
    'group' => 'party',
  );
  $hooks['party_data_set_save'] = array(
    'group' => 'party',
  );
  $hooks['party_operations'] = array(
    'group' => 'party',
  );
  $hooks['party_page_view_alter'] = array(
    'group' => 'party',
  );
  $hooks['party_primary_fields_alter'] = array(
    'group' => 'party',
  );

  // Info based hooks. These should all be cached and called infrequently.
  $hooks['party_data_set_info'] = array(
    'group' => 'party_info',
  );
  $hooks['party_data_set_info_alter'] = array(
    'group' => 'party_info',
  );
  $hooks['party_party_piece_info'] = array(
    'group' => 'party_info',
  );
  $hooks['party_party_pieces'] = array(
    'group' => 'party_info',
  );
  $hooks['party_admin_columns_info'] = array(
    'group' => 'party_info',
  );
  $hooks['party_primary_fields_fields_alter'] = array(
    'group' => 'party_info',
  );
  $hooks['party_primary_fields_sources_alter'] = array(
    'group' => 'party_info',
  );

  // Acquisition hooks.
  $hooks['party_acquisition_values_alter'] = array(
    'group' => 'party_acquisition',
  );
  $hooks['party_acquisition_query_alter'] = array(
    'group' => 'party_acquisition',
  );
  $hooks['party_acquisition_post_acquisition'] = array(
    'group' => 'party_acquisition',
  );
  return $hooks;
}