View source
<?php
function cms_core_field_default_field_instances() {
$field_instances = array();
$field_instances['bean-content_block-field_block_content'] = array(
'bundle' => 'content_block',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'field_formatter_class' => '',
),
'type' => 'text_default',
'weight' => 1,
),
),
'entity_type' => 'bean',
'fences_wrapper' => 'div',
'field_name' => 'field_block_content',
'label' => 'Content',
'required' => 0,
'settings' => array(
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 16,
),
'type' => 'text_textarea',
'weight' => 2,
),
);
$field_instances['bean-content_block-field_page_attachments'] = array(
'bundle' => 'content_block',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 2,
),
),
'entity_type' => 'bean',
'fences_wrapper' => 'div',
'field_name' => 'field_page_attachments',
'label' => 'Attachments',
'required' => 0,
'settings' => array(
'description_field' => 0,
'file_directory' => 'block-attachments',
'file_extensions' => 'jpg jpeg gif png txt doc docx xls xlsx pdf ppt pptx pps ppsx odt ods odp mp3 mov mp4 m4a m4v mpeg avi',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'media',
'settings' => array(
'allowed_schemes' => array(
0 => 'public',
1 => 'private',
),
'allowed_types' => array(
0 => 'image',
),
'browser_plugins' => array(),
'filefield_sources' => array(
'filefield_sources' => array(
'attach' => 0,
'clipboard' => 0,
'plupload' => 'plupload',
'reference' => 'reference',
'remote' => 'remote',
'upload' => 0,
),
'source_attach' => array(
'absolute' => 0,
'attach_mode' => 'move',
'path' => 'file_attach',
),
'source_imce' => array(
'imce_mode' => 0,
),
'source_reference' => array(
'autocomplete' => 1,
),
),
'progress_indicator' => 'throbber',
),
'type' => 'media_generic',
'weight' => 3,
),
);
$field_instances['node-page-body'] = array(
'bundle' => 'page',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'field_formatter_class' => '',
),
'type' => 'text_default',
'weight' => 0,
),
'mdp_full_popup' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'mdp_inline_popup' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'field_formatter_class' => '',
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Body',
'required' => FALSE,
'settings' => array(
'display_summary' => TRUE,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => -4,
),
);
$field_instances['node-page-field_page_attachments'] = array(
'bundle' => 'page',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'file',
'settings' => array(
'field_formatter_class' => '',
),
'type' => 'file_default',
'weight' => 1,
),
'mdp_full_popup' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'mdp_inline_popup' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'fences_wrapper' => 'div',
'field_name' => 'field_page_attachments',
'label' => 'Attachments',
'required' => 0,
'settings' => array(
'description_field' => 0,
'file_directory' => 'page-attachments',
'file_extensions' => 'jpg jpeg gif png txt doc docx xls xlsx pdf ppt pptx pps ppsx odt ods odp mp3 mov mp4 m4a m4v mpeg avi',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'media',
'settings' => array(
'allowed_schemes' => array(
'public' => 'public',
),
'allowed_types' => array(
'audio' => 0,
'document' => 0,
'image' => 0,
'video' => 0,
),
'browser_plugins' => array(
'media_default--media_browser_1' => 0,
'media_default--media_browser_my_files' => 0,
'media_internet' => 0,
'upload' => 0,
),
),
'type' => 'media_generic',
'weight' => 41,
),
);
t('Attachments');
t('Body');
t('Content');
return $field_instances;
}