function paragraphs_pack_field_info in Paragraphs pack 7
Implements hook_field_info().
File
- includes/
paragraphs_pack.fields.inc, line 12 - Implements custom fields: PP_FIELD_TYPE_VIEW_MODE.
Code
function paragraphs_pack_field_info() {
return array(
PP_FIELD_TYPE_VIEW_MODE => array(
'label' => t('View mode Selection'),
'description' => t('This field stores a view mode that\'s going to be applied on Paragraphs pack items field'),
'instance_settings' => array(
// Default to the core entity type node.
'entity_type' => 'node',
),
'default_widget' => 'options_select',
'default_formatter' => PP_FORMATTER_VIEW_MODE,
),
);
}