function panopoly_widgets_field_default_field_instances in Panopoly Widgets 7
Implements hook_field_default_field_instances().
File
- ./
panopoly_widgets.features.field_instance.inc, line 11 - panopoly_widgets.features.field_instance.inc
Code
function panopoly_widgets_field_default_field_instances() {
$field_instances = array();
// Exported field_instance:
// 'fieldable_panels_pane-basic_file-field_basic_file_file'.
$field_instances['fieldable_panels_pane-basic_file-field_basic_file_file'] = array(
'bundle' => 'basic_file',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'file',
'settings' => array(),
'type' => 'file_default',
'weight' => 2,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_basic_file_file',
'label' => 'File',
'required' => 1,
'settings' => array(
'description_field' => 0,
'file_directory' => 'general',
'file_extensions' => 'txt doc docx xls xlsx pdf ppt pptx pps ppsx odt ods odp',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'media',
'settings' => array(
'allowed_schemes' => array(
'private' => 'private',
'public' => 'public',
'vimeo' => 0,
'youtube' => 0,
),
'allowed_types' => array(
'audio' => 0,
'document' => 'document',
'image' => 0,
'video' => 0,
),
'browser_plugins' => array(
'media_default--media_browser_1' => 'media_default--media_browser_1',
'media_default--media_browser_my_files' => 0,
'media_internet' => 0,
'upload' => 'upload',
),
'manualcrop_crop_info' => 1,
'manualcrop_default_crop_area' => 1,
'manualcrop_enable' => 0,
'manualcrop_inline_crop' => 0,
'manualcrop_instant_crop' => FALSE,
'manualcrop_instant_preview' => 1,
'manualcrop_keyboard' => 1,
'manualcrop_maximize_default_crop_area' => 0,
'manualcrop_require_cropping' => array(),
'manualcrop_styles_list' => array(),
'manualcrop_styles_mode' => 'include',
'manualcrop_thumblist' => 0,
),
'type' => 'media_generic',
'weight' => 2,
),
);
// Exported field_instance:
// 'fieldable_panels_pane-basic_file-field_basic_file_text'.
$field_instances['fieldable_panels_pane-basic_file-field_basic_file_text'] = array(
'bundle' => 'basic_file',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_basic_file_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:
// 'fieldable_panels_pane-image-field_basic_image_caption'.
$field_instances['fieldable_panels_pane-image-field_basic_image_caption'] = array(
'bundle' => 'image',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_basic_image_caption',
'label' => 'Caption',
'required' => 0,
'settings' => array(
'display_summary' => 0,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 3,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 3,
),
);
// Exported field_instance:
// 'fieldable_panels_pane-image-field_basic_image_image'.
$field_instances['fieldable_panels_pane-image-field_basic_image_image'] = array(
'bundle' => 'image',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => 'panopoly_image_full',
),
'type' => 'image',
'weight' => 0,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_basic_image_image',
'label' => 'Image',
'required' => 1,
'settings' => array(
'alt_field' => 1,
'default_image' => 0,
'file_directory' => 'general',
'file_extensions' => 'png gif jpg jpeg',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'media',
'settings' => array(
'allowed_schemes' => array(
'private' => 'private',
'public' => 'public',
'vimeo' => 0,
'youtube' => 0,
),
'allowed_types' => array(
'audio' => 0,
'document' => 0,
'image' => 'image',
'video' => 0,
),
'browser_plugins' => array(
'media_default--media_browser_1' => 'media_default--media_browser_1',
'media_default--media_browser_my_files' => 0,
'media_internet' => 0,
'upload' => 'upload',
'youtube' => 0,
),
'manualcrop_crop_info' => 1,
'manualcrop_default_crop_area' => 1,
'manualcrop_enable' => 1,
'manualcrop_inline_crop' => 0,
'manualcrop_instant_crop' => FALSE,
'manualcrop_instant_preview' => 1,
'manualcrop_keyboard' => 1,
'manualcrop_maximize_default_crop_area' => 1,
'manualcrop_require_cropping' => array(),
'manualcrop_styles_list' => array(
'panopoly_image_full' => 'panopoly_image_full',
),
'manualcrop_styles_mode' => 'include',
'manualcrop_thumblist' => 0,
),
'type' => 'media_generic',
'weight' => 1,
),
);
// Exported field_instance:
// 'fieldable_panels_pane-image-field_basic_image_link'.
$field_instances['fieldable_panels_pane-image-field_basic_image_link'] = array(
'bundle' => 'image',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Full URL or relative path (ex. <em>node/123</em>) to link the image to. If left blank, the image won\'t be a link.',
'display' => array(
'default' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => 2,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_basic_image_link',
'label' => 'Link',
'required' => 0,
'settings' => array(
'absolute_url' => 1,
'attributes' => array(
'class' => '',
'configurable_class' => 0,
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => '',
),
'enable_tokens' => 0,
'linkit' => array(
'button_text' => 'Search for existing content',
'enable' => 1,
'profile' => 'content_fields',
),
'rel_remove' => 'default',
'title' => 'none',
'title_label_use_field_label' => 0,
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => 2,
),
);
// Exported field_instance: 'fieldable_panels_pane-map-field_map_address'.
$field_instances['fieldable_panels_pane-map-field_map_address'] = array(
'bundle' => 'map',
'default_value' => NULL,
'deleted' => 0,
'description' => 'The street address of the location you wish to map. This widget will contact Google and try to do its best to create a map!',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'simple_gmap',
'settings' => array(
'apikey' => '',
'iframe_height' => 400,
'iframe_title' => 'Google Map of [address]',
'iframe_width' => 600,
'include_link' => 0,
'include_map' => 1,
'include_static_map' => 0,
'include_text' => 0,
'information_bubble' => 0,
'langcode' => 'en',
'link_text' => 'View larger map',
'map_type' => 'm',
'static_scale' => 1,
'zoom_level' => 14,
),
'type' => 'simple_gmap',
'weight' => 0,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_map_address',
'label' => 'Address',
'required' => 1,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => -4,
),
);
// Exported field_instance: 'fieldable_panels_pane-map-field_map_information'.
$field_instances['fieldable_panels_pane-map-field_map_information'] = array(
'bundle' => 'map',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_map_information',
'label' => 'Information',
'required' => 0,
'settings' => array(
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 3,
),
'type' => 'text_textarea',
'weight' => -3,
),
);
// Exported field_instance:
// 'fieldable_panels_pane-quick_links-field_quick_links_links'.
$field_instances['fieldable_panels_pane-quick_links-field_quick_links_links'] = array(
'bundle' => 'quick_links',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'link',
'settings' => array(
'custom_title' => '',
),
'type' => 'link_default',
'weight' => 0,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_quick_links_links',
'label' => 'Links',
'required' => 1,
'settings' => array(
'absolute_url' => 1,
'attributes' => array(
'class' => '',
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'title' => 'optional',
'title_label_use_field_label' => FALSE,
'title_maxlength' => 128,
'title_value' => '',
'url' => 0,
'user_register_form' => FALSE,
'validate_url' => 1,
),
'widget' => array(
'active' => 0,
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => -4,
),
);
// Exported field_instance:
// 'fieldable_panels_pane-spotlight-field_basic_spotlight_duration'.
$field_instances['fieldable_panels_pane-spotlight-field_basic_spotlight_duration'] = array(
'bundle' => 'spotlight',
'default_value' => array(
0 => array(
'value' => 5,
),
),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'settings' => array(),
'type' => 'hidden',
'weight' => 1,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_basic_spotlight_duration',
'label' => 'Slide Duration',
'required' => 1,
'settings' => array(
'max' => 60,
'min' => 1,
'prefix' => '',
'suffix' => 'seconds',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'number',
'settings' => array(),
'type' => 'number',
'weight' => 1,
),
);
// Exported field_instance:
// 'fieldable_panels_pane-spotlight-field_basic_spotlight_items'.
$field_instances['fieldable_panels_pane-spotlight-field_basic_spotlight_items'] = array(
'bundle' => 'spotlight',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'panopoly_widgets',
'settings' => array(
'image_style' => 'panopoly_image_spotlight',
),
'type' => 'panopoly_spotlight_default',
'weight' => 0,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_basic_spotlight_items',
'label' => 'Items',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'file_directory' => 'general',
'file_extensions' => 'jpg jpeg gif png',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'panopoly_widgets',
'settings' => array(),
'type' => 'panopoly_spotlight_form',
'weight' => 3,
),
);
// Exported field_instance:
// 'fieldable_panels_pane-spotlight-field_basic_spotlight_pager'.
$field_instances['fieldable_panels_pane-spotlight-field_basic_spotlight_pager'] = array(
'bundle' => 'spotlight',
'default_value' => array(
0 => array(
'value' => 'full',
),
),
'deleted' => 0,
'description' => 'How would you like the pager to appear?',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 2,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_basic_spotlight_pager',
'label' => 'Pager Style',
'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 1,
),
);
// Exported field_instance:
// 'fieldable_panels_pane-table-field_basic_table_table'.
$field_instances['fieldable_panels_pane-table-field_basic_table_table'] = array(
'bundle' => 'table',
'default_value' => array(
0 => array(
'tablefield' => array(
'caption' => NULL,
'import' => array(
'rebuild_field_basic_table_table_0' => 'Upload CSV',
'tablefield_csv_field_basic_table_table_0' => '',
),
'paste' => NULL,
'rebuild' => array(
'count_cols' => 2,
'count_rows' => 3,
'header_orientation' => 'Horizontal',
'rebuild' => 'Rebuild Table',
),
'tabledata' => array(
'row_0' => array(
'col_0' => '',
'col_1' => '',
),
'row_1' => array(
'col_0' => '',
'col_1' => '',
),
'row_2' => array(
'col_0' => '',
'col_1' => '',
),
),
),
),
),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'tablefield',
'settings' => array(
'export_csv' => 0,
'hide_cols_skip_head' => 0,
'hide_empty_cols' => 0,
'hide_empty_rows' => 0,
'hide_header' => 0,
'sortable' => 0,
'sticky_header' => 1,
'striping' => 1,
'table_custom_class_attributes' => 'table',
'trim_trailing_cols' => 1,
'trim_trailing_rows' => 1,
),
'type' => 'tablefield_default',
'weight' => 0,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_basic_table_table',
'label' => 'Table',
'required' => 1,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'tablefield',
'settings' => array(
'cell_processing' => 0,
'lock_values' => 0,
'restrict_rebuild' => 0,
),
'type' => 'tablefield',
'weight' => -4,
),
);
// Exported field_instance:
// 'fieldable_panels_pane-text-field_basic_text_text'.
$field_instances['fieldable_panels_pane-text-field_basic_text_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,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_basic_text_text',
'label' => 'Text',
'required' => 1,
'settings' => array(
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 5,
),
'type' => 'text_textarea',
'weight' => -4,
),
);
// Exported field_instance: 'fieldable_panels_pane-video-field_video_file'.
$field_instances['fieldable_panels_pane-video-field_video_file'] = array(
'bundle' => 'video',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'file_entity',
'settings' => array(
'file_view_mode' => 'default',
),
'type' => 'file_rendered',
'weight' => 2,
),
),
'entity_type' => 'fieldable_panels_pane',
'field_name' => 'field_video_file',
'label' => 'Video',
'required' => 1,
'settings' => array(
'description_field' => 0,
'file_directory' => '',
'file_extensions' => 'jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp mp3 mov m4v mp4 mpeg avi ogg oga ogv wmv ico',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'media',
'settings' => array(
'allowed_schemes' => array(
'public' => 0,
'vimeo' => 'vimeo',
'youtube' => 'youtube',
),
'allowed_types' => array(
'audio' => 0,
'default' => 0,
'image' => 0,
'video' => 'video',
),
'browser_plugins' => array(
'library' => 0,
'media_default--media_browser_1' => 'media_default--media_browser_1',
'media_default--media_browser_my_files' => 0,
'media_internet' => 'media_internet',
'upload' => 0,
),
'manualcrop_crop_info' => TRUE,
'manualcrop_default_crop_area' => TRUE,
'manualcrop_enable' => FALSE,
'manualcrop_inline_crop' => FALSE,
'manualcrop_instant_crop' => FALSE,
'manualcrop_instant_preview' => TRUE,
'manualcrop_keyboard' => TRUE,
'manualcrop_maximize_default_crop_area' => TRUE,
'manualcrop_require_cropping' => array(),
'manualcrop_styles_list' => array(),
'manualcrop_styles_mode' => 'include',
'manualcrop_thumblist' => FALSE,
'progress_indicator' => 'throbber',
),
'type' => 'media_generic',
'weight' => -2,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Address');
t('Caption');
t('File');
t('Full URL or relative path (ex. <em>node/123</em>) to link the image to. If left blank, the image won\'t be a link.');
t('How would you like the pager to appear?');
t('Image');
t('Information');
t('Items');
t('Link');
t('Links');
t('Pager Style');
t('Slide Duration');
t('Table');
t('Text');
t('The street address of the location you wish to map. This widget will contact Google and try to do its best to create a map!');
t('Video');
return $field_instances;
}