function entityreference_field_formatter_info in Entity reference 7
Implements hook_field_formatter_info().
File
- ./
entityreference.module, line 1163 - Entityreference primary module file.
Code
function entityreference_field_formatter_info() {
return array(
'entityreference_label' => array(
'label' => t('Label'),
'description' => t('Display the label of the referenced entities.'),
'field types' => array(
'entityreference',
),
'settings' => array(
'link' => FALSE,
'bypass_access' => FALSE,
),
),
'entityreference_entity_id' => array(
'label' => t('Entity id'),
'description' => t('Display the id of the referenced entities.'),
'field types' => array(
'entityreference',
),
),
'entityreference_entity_view' => array(
'label' => t('Rendered entity'),
'description' => t('Display the referenced entities rendered by entity_view().'),
'field types' => array(
'entityreference',
'taxonomy_term_reference',
),
'settings' => array(
'view_mode' => 'default',
'links' => TRUE,
'use_content_language' => TRUE,
'hide_title' => FALSE,
),
),
);
}