View source
<?php
function faq_content_field_default_field_instances() {
$field_instances = array();
$field_instances['node-faq-body'] = array(
'bundle' => 'faq',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Enter detailed answer here',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Answer',
'required' => 0,
'settings' => array(
'display_summary' => 0,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 5,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 3,
),
);
$field_instances['node-faq-field_detailed_question'] = array(
'bundle' => 'faq',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Enter detailed question here for better description to faq expert',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_detailed_question',
'label' => 'Detailed Question',
'required' => 0,
'settings' => array(
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => 2,
),
);
t('Answer');
t('Detailed Question');
t('Enter detailed answer here');
t('Enter detailed question here for better description to faq expert');
return $field_instances;
}