static function PartyDefaultDataSet::hook_entity_info_alter in Party 7
Same name and namespace in other branches
- 8.2 includes/party.data.inc \PartyDefaultDataSet::hook_entity_info_alter()
Alters entity info for entities requesting CRM integration.
Parameters
array $entity_info: The info array for a single entity. Apparently, you can pass this in from the original array in an implementation of hook_entity_info_alter, thus: PartyDefaultDataSet::hook_entity_info_alter($entity_info['profile2']);
File
- includes/
party.data.inc, line 55 - Provides the default class for managing party - Attached entity relationships.
Class
- PartyDefaultDataSet
- Class PartyDefaultDataSet
Code
static function hook_entity_info_alter(&$entity_info) {
$entity_info['view modes']['party'] = array(
'label' => t('Party Attached Entity'),
'custom settings' => FALSE,
);
}