function oa_related_field_default_field_instances_template in Open Atrium Related Content 7.2
Template callback for field_topic.
Used as a template for other bundles. References to oa_wiki_page will be replaced by features_template.
1 string reference to 'oa_related_field_default_field_instances_template'
- oa_related_features_template_info in ./
oa_related.module - Implements hook_features_template_info().
File
- ./
oa_related.module, line 319
Code
function oa_related_field_default_field_instances_template() {
$field_instances = array();
foreach (paragraphs_bundle_load() as $machine_name => $bundle) {
$bundles[$machine_name] = $machine_name;
}
// Exported field_instance: 'node-oa_wiki_page-field_oa_related'
$field_instances['node-oa_wiki_page-field_oa_related'] = array(
'bundle' => 'oa_wiki_page',
'comment_alter' => 0,
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'paragraphs',
'settings' => array(
'view_mode' => 'full',
),
'type' => 'paragraphs_view',
'weight' => 1,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'ical' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_oa_related',
'label' => t('Paragraphs'),
'required' => 0,
'settings' => array(
'add_mode' => 'button',
'add_mode_instructions' => '',
'allowed_bundles' => array_intersect_key($bundles, array_filter(variable_get('oa_related_paragraph_bundles', $bundles))),
'default_edit_mode' => 'open',
'hide_instructions' => 1,
'title' => 'Paragraph',
'title_multiple' => 'Paragraphs',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'paragraphs',
'settings' => array(),
'type' => 'paragraphs_embed',
'weight' => 4,
),
);
return $field_instances;
}