function crm_core_activity_entity_info_alter in CRM Core 7
Implements hook_entity_info_alter().
Use this hook to specify profile bundles to avoid a recursion, as loading the profile types needs the entity info too.
File
- modules/
crm_core_activity/ crm_core_activity.module, line 144 - Provides an entity for recording a contact's activities.
Code
function crm_core_activity_entity_info_alter(&$entity_info) {
foreach (crm_core_activity_types() as $type => $info) {
$entity_info['crm_core_activity']['bundles'][$type] = array(
'label' => $info->label,
'admin' => array(
'path' => 'admin/structure/crm-core/activity-types/manage/%crm_core_activity_type',
'real path' => 'admin/structure/crm-core/activity-types/manage/' . $type,
'bundle argument' => 5,
),
);
}
}