function field_collection_field_formatter_info in Field collection 7
Implements hook_field_formatter_info().
File
- ./
field_collection.module, line 840 - Module implementing field collection field type.
Code
function field_collection_field_formatter_info() {
return array(
'field_collection_list' => array(
'label' => t('Links to field collection items'),
'field types' => array(
'field_collection',
),
'settings' => array(
'edit' => t('Edit'),
'translate' => t('Translate'),
'delete' => t('Delete'),
'add' => t('Add'),
'description' => TRUE,
),
),
'field_collection_view' => array(
'label' => t('Field collection items'),
'field types' => array(
'field_collection',
),
'settings' => array(
'edit' => t('Edit'),
'translate' => t('Translate'),
'delete' => t('Delete'),
'add' => t('Add'),
'description' => TRUE,
'view_mode' => 'full',
),
),
'field_collection_fields' => array(
'label' => t('Fields only'),
'field types' => array(
'field_collection',
),
'settings' => array(
'view_mode' => 'full',
),
),
);
}