function crm_core_relationship_ui_field_formatter_info_alter in CRM Core 8
Same name and namespace in other branches
- 8.3 modules/crm_core_relationship_ui/crm_core_relationship_ui.module \crm_core_relationship_ui_field_formatter_info_alter()
- 8.2 modules/crm_core_relationship_ui/crm_core_relationship_ui.module \crm_core_relationship_ui_field_formatter_info_alter()
- 7 modules/crm_core_relationship_ui/crm_core_relationship_ui.module \crm_core_relationship_ui_field_formatter_info_alter()
Implements hook_field_formatter_info_alter.
File
- modules/
crm_core_relationship_ui/ crm_core_relationship_ui.module, line 208 - Relationship UI module hooks.
Code
function crm_core_relationship_ui_field_formatter_info_alter(&$info) {
// We will add our own field formatter
// for display relationships.
$info['contact_relationship'] = [
'label' => t('Related Contact'),
'field types' => [
'relation_endpoint',
],
'module' => 'crm_core_relationship_ui',
];
$info['contact_relationship_human'] = [
'label' => t('Related Contact(Human readable)'),
'field types' => [
'relation_endpoint',
],
'module' => 'crm_core_relationship_ui',
];
$info['contact_relationship_view'] = [
'label' => t('Related Contact(Table)'),
'field types' => [
'relation_endpoint',
],
'module' => 'crm_core_relationship_ui',
];
$info['contact_relationship_current'] = [
'label' => t('Current Contact'),
'field types' => [
'relation_endpoint',
],
'module' => 'crm_core_relationship_ui',
];
}