1 entityreference.module | entityreference_field_formatter_info() |
Implements hook_field_formatter_info().
File
- core/
modules/ entityreference/ entityreference.module, line 1130 - 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 as they are rendered.'),
'field types' => array('entityreference', 'taxonomy_term_reference'),
'settings' => array(
'view_mode' => 'default',
'links' => TRUE,
'use_content_language' => TRUE,
'hide_title' => FALSE,
),
),
);
}