function bricks_default_field_default_field_instances in Bricks 7.5
Implements hook_field_default_field_instances().
File
- bricks_default/
bricks_default.features.field_instance.inc, line 10 - bricks_default.features.field_instance.inc
Code
function bricks_default_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'brick-columns-field_body'.
$field_instances['brick-columns-field_body'] = array(
'bundle' => 'columns',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'entityreference',
'settings' => array(
'links' => 0,
'view_mode' => 'default',
),
'type' => 'entityreference_entity_view',
'weight' => 0,
),
),
'entity_type' => 'brick',
'field_name' => 'field_body',
'label' => 'Columns',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'entityreference_live_preview' => array(
'enabled' => 1,
'mode' => 'teaser',
'preview_type' => 'target',
),
'match_operator' => 'CONTAINS',
'path' => '',
'references_dialog_add' => 1,
'references_dialog_edit' => 1,
'references_dialog_search' => 1,
'references_dialog_search_view' => '',
'size' => 60,
'treeable' => 1,
),
'type' => 'entityreference_autocomplete',
'weight' => 0,
),
);
// Exported field_instance: 'brick-grid-field_body'.
$field_instances['brick-grid-field_body'] = array(
'bundle' => 'grid',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'entityreference',
'settings' => array(
'links' => 0,
'view_mode' => 'default',
),
'type' => 'entityreference_entity_view',
'weight' => 0,
),
),
'entity_type' => 'brick',
'field_name' => 'field_body',
'label' => 'Cells',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'entityreference_live_preview' => array(
'enabled' => 1,
'mode' => 'teaser',
'preview_type' => 'target',
),
'match_operator' => 'CONTAINS',
'path' => '',
'references_dialog_add' => 1,
'references_dialog_edit' => 1,
'references_dialog_search' => 1,
'references_dialog_search_view' => '',
'size' => 60,
'treeable' => 1,
),
'type' => 'entityreference_autocomplete',
'weight' => 0,
),
);
// Exported field_instance: 'brick-image-field_image'.
$field_instances['brick-image-field_image'] = array(
'bundle' => 'image',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => '',
),
'type' => 'image',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => 'thumbnail',
),
'type' => 'image',
'weight' => 0,
),
),
'entity_type' => 'brick',
'field_name' => 'field_image',
'label' => 'Image',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'file_directory' => '',
'file_extensions' => 'png gif jpg jpeg',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'image',
'settings' => array(
'preview_image_style' => 'thumbnail',
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => 1,
),
);
// Exported field_instance: 'brick-section-field_body'.
$field_instances['brick-section-field_body'] = array(
'bundle' => 'section',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'er_viewmode',
'settings' => array(
'links' => 0,
'view_mode' => 'default',
),
'type' => 'entityreference_entity_view',
'weight' => 1,
),
),
'entity_type' => 'brick',
'field_name' => 'field_body',
'label' => 'Content',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'entityreference_live_preview' => array(
'enabled' => 1,
'mode' => 'teaser',
'preview_type' => 'target',
),
'match_operator' => 'CONTAINS',
'path' => '',
'references_dialog_add' => 1,
'references_dialog_edit' => 1,
'references_dialog_search' => 1,
'references_dialog_search_view' => '',
'size' => 60,
'treeable' => 1,
),
'type' => 'entityreference_autocomplete',
'weight' => 1,
),
);
// Exported field_instance: 'brick-section-field_title'.
$field_instances['brick-section-field_title'] = array(
'bundle' => 'section',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
),
'entity_type' => 'brick',
'field_name' => 'field_title',
'label' => 'Title',
'required' => 0,
'settings' => array(
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
'treeable' => 0,
),
'type' => 'text_textfield',
'weight' => 1,
),
);
// Exported field_instance: 'brick-text-field_text'.
$field_instances['brick-text-field_text'] = array(
'bundle' => 'text',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'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' => 200,
),
'type' => 'text_trimmed',
'weight' => 0,
),
),
'entity_type' => 'brick',
'field_name' => 'field_text',
'label' => 'Text',
'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' => 1,
),
);
// Exported field_instance: 'node-page-field_body'.
$field_instances['node-page-field_body'] = array(
'bundle' => 'page',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'entityreference',
'settings' => array(
'links' => 0,
'view_mode' => 'default',
),
'type' => 'entityreference_entity_view',
'weight' => 1,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 2,
),
),
'entity_type' => 'node',
'field_name' => 'field_body',
'label' => 'Body',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'entityreference',
'settings' => array(
'entityreference_live_preview' => array(
'enabled' => 1,
'mode' => 'teaser',
'preview_type' => 'target',
),
'match_operator' => 'CONTAINS',
'path' => '',
'references_dialog_add' => 1,
'references_dialog_edit' => 1,
'references_dialog_search' => 1,
'references_dialog_search_view' => '',
'size' => 60,
'treeable' => 1,
),
'type' => 'entityreference_autocomplete',
'weight' => 1,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Body');
t('Cells');
t('Columns');
t('Content');
t('Image');
t('Text');
t('Title');
return $field_instances;
}