View source
<?php
function paragraphs_id_test_field_default_field_instances() {
$field_instances = array();
$field_instances['node-pp_test_landing_page-field_pp_test_body'] = array(
'bundle' => 'pp_test_landing_page',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 2,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_pp_test_body',
'label' => 'Body',
'required' => 0,
'settings' => array(
'display_summary' => 0,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 1,
),
);
$field_instances['node-pp_test_landing_page-field_pp_test_paragraphs'] = array(
'bundle' => 'pp_test_landing_page',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'paragraphs',
'settings' => array(
'view_mode' => 'full',
),
'type' => 'paragraphs_view',
'weight' => 1,
),
'teaser' => array(
'label' => 'above',
'module' => 'paragraphs',
'settings' => array(
'view_mode' => 'full',
),
'type' => 'paragraphs_view',
'weight' => 1,
),
),
'entity_type' => 'node',
'field_name' => 'field_pp_test_paragraphs',
'label' => 'Paragraphs',
'required' => 0,
'settings' => array(
'add_mode' => 'select',
'allowed_bundles' => array(),
'default_edit_mode' => 'open',
'title' => 'Paragraph',
'title_multiple' => 'Paragraphs',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'paragraphs',
'settings' => array(),
'type' => 'paragraphs_embed',
'weight' => 2,
),
);
$field_instances['paragraphs_item-pp_test_paragraph_bundle-field_pp_test_body'] = array(
'bundle' => 'pp_test_paragraph_bundle',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'paragraphs_editor_preview' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'paragraphs_item',
'field_name' => 'field_pp_test_body',
'label' => 'Body',
'required' => 0,
'settings' => array(
'display_summary' => 0,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 2,
),
);
t('Body');
t('Paragraphs');
return $field_instances;
}