View source
<?php
function varbase_editor_field_default_field_instances() {
$field_instances = array();
$field_instances['file-image-field_text'] = array(
'bundle' => 'image',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 2,
),
'preview' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'wysiwyg' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_plain',
'weight' => 2,
),
),
'ds_extras_field_template' => '',
'entity_type' => 'file',
'field_name' => 'field_text',
'label' => 'Image caption',
'required' => 0,
'settings' => array(
'better_formats' => array(
'allowed_formats' => array(
'basic_editor' => 'basic_editor',
'html_editor' => 'html_editor',
'plain_text' => 'plain_text',
'visual_editor' => 'visual_editor',
),
'allowed_formats_toggle' => 0,
'default_order_toggle' => 0,
'default_order_wrapper' => array(
'formats' => array(
'basic_editor' => array(
'weight' => -9,
),
'html_editor' => array(
'weight' => -7,
),
'plain_text' => array(
'weight' => -8,
),
'visual_editor' => array(
'weight' => -10,
),
),
),
),
'linkit' => array(
'button_text' => 'Search',
'enable' => 0,
'profile' => '',
),
'text_processing' => 0,
'user_register_form' => FALSE,
'wysiwyg_override' => 1,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'maxlength_js' => '',
'maxlength_js_enforce' => 0,
'maxlength_js_label' => 'Content limited to @limit characters, remaining: <strong>@remaining</strong>',
'maxlength_js_truncate_html' => 0,
'rows' => 4,
),
'type' => 'text_textarea',
'weight' => 2,
),
);
t('Image caption');
return $field_instances;
}