View source
<?php
function cms_portfolio_field_default_field_instances() {
$field_instances = array();
$field_instances['node-portfolio-body'] = array(
'bundle' => 'portfolio',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'field_formatter_class' => 'cms-portfolio-content',
),
'type' => 'text_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' => 'hidden',
'module' => 'text',
'settings' => array(
'field_formatter_class' => 'clear-both',
'trim_length' => 300,
),
'type' => 'text_summary_or_trimmed',
'weight' => 1,
),
),
'entity_type' => 'node',
'fences_wrapper' => 'div',
'field_name' => 'body',
'label' => 'Details',
'required' => 0,
'settings' => array(
'display_summary' => 1,
'linkit' => array(
'button_text' => 'Search',
'enable' => 0,
'profile' => '',
),
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 1,
),
);
$field_instances['node-portfolio-field_cms_portfolio_client'] = array(
'bundle' => 'portfolio',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(
'field_formatter_class' => '',
),
'type' => 'text_default',
'weight' => 18,
),
'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' => 5,
),
),
'entity_type' => 'node',
'fences_wrapper' => 'div',
'field_name' => 'field_cms_portfolio_client',
'label' => 'Client',
'required' => 0,
'settings' => array(
'linkit' => array(
'button_text' => 'Search',
'enable' => 0,
'profile' => '',
),
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 15,
),
);
$field_instances['node-portfolio-field_cms_portfolio_links'] = array(
'bundle' => 'portfolio',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'link',
'settings' => array(
'field_formatter_class' => '',
),
'type' => 'link_default',
'weight' => 21,
),
'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' => 8,
),
),
'entity_type' => 'node',
'fences_wrapper' => 'div',
'field_name' => 'field_cms_portfolio_links',
'label' => 'Project Links',
'required' => 0,
'settings' => array(
'absolute_url' => 1,
'attributes' => array(
'class' => '',
'configurable_class' => 0,
'configurable_title' => 0,
'rel' => '',
'target' => 'default',
'title' => '',
),
'display' => array(
'url_cutoff' => 80,
),
'enable_tokens' => 1,
'rel_remove' => 'default',
'title' => 'optional',
'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' => 18,
),
);
$field_instances['node-portfolio-field_cms_portoflio_custom'] = array(
'bundle' => 'portfolio',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Example custom field',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'text',
'settings' => array(
'field_formatter_class' => '',
),
'type' => 'text_default',
'weight' => 20,
),
'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' => 7,
),
),
'entity_type' => 'node',
'fences_wrapper' => 'div',
'field_name' => 'field_cms_portoflio_custom',
'label' => 'Custom Field',
'required' => 0,
'settings' => array(
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 16,
),
);
$field_instances['node-portfolio-field_comparison_images'] = array(
'bundle' => 'portfolio',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'cms_portfolio',
'settings' => array(
'default_offset_pct' => 0.5,
'field_formatter_class' => '',
'image_style' => '',
),
'type' => 'twentytwenty',
'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_comparison_images',
'label' => 'Comparison Images',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'file_directory' => 'portfolio',
'file_extensions' => 'png gif jpg jpeg',
'image_field_caption' => 0,
'image_field_caption_wrapper' => array(
'image_field_caption_default' => array(
'format' => 'plain_text',
'value' => '',
),
),
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'title_field' => 0,
'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' => 'image',
'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' => 6,
),
);
$field_instances['node-portfolio-field_image_display'] = array(
'bundle' => 'portfolio',
'default_value' => array(
0 => array(
'type' => 'image',
'settings' => 'a:2:{s:11:"image_style";s:15:"full_width_1920";s:10:"image_link";s:0:"";}',
),
),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 22,
),
'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_image_display',
'label' => 'Image Display',
'required' => 0,
'settings' => array(
'field_name' => 'field_portfolio_images',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'formatter_field',
'settings' => array(),
'type' => 'formatter_select',
'weight' => 5,
),
);
$field_instances['node-portfolio-field_image_display_style'] = array(
'bundle' => 'portfolio',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 6,
),
'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_image_display_style',
'label' => 'Image Display Style',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 6,
),
);
$field_instances['node-portfolio-field_page_attachments'] = array(
'bundle' => 'portfolio',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 7,
),
'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' => 6,
),
),
'entity_type' => 'node',
'fences_wrapper' => 'div',
'field_name' => 'field_page_attachments',
'label' => 'Attachments',
'required' => 0,
'settings' => array(
'description_field' => 0,
'file_directory' => '',
'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 ogg oga ogv weba webp webm',
'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' => 10,
),
);
$field_instances['node-portfolio-field_portfolio_category'] = array(
'bundle' => 'portfolio',
'default_value' => NULL,
'deleted' => 0,
'description' => 'This field is used to divide portoflio content in categories',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'taxonomy',
'settings' => array(
'field_formatter_class' => 'list-inline',
),
'type' => 'taxonomy_term_reference_link',
'weight' => 19,
),
'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',
'module' => 'taxonomy',
'settings' => array(
'field_formatter_class' => 'list-inline',
),
'type' => 'taxonomy_term_reference_link',
'weight' => 2,
),
),
'entity_type' => 'node',
'fences_wrapper' => 'ul',
'field_name' => 'field_portfolio_category',
'label' => 'Category',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'options',
'settings' => array(
'autocomplete_path' => 'taxonomy/autocomplete',
'size' => 60,
),
'type' => 'options_buttons',
'weight' => 17,
),
);
$field_instances['node-portfolio-field_portfolio_images'] = array(
'bundle' => 'portfolio',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'formatter_field',
'settings' => array(
'field_formatter_class' => '',
),
'type' => 'from_field',
'weight' => 2,
),
'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' => 'image',
'settings' => array(
'field_formatter_class' => 'col-sm-4',
'image_hover_effects' => 0,
'image_hover_effects_data' => '+',
'image_link' => 'content',
'image_style' => 'bootstrap3_col6_photo',
),
'type' => 'image',
'weight' => 3,
),
),
'entity_type' => 'node',
'fences_wrapper' => 'div',
'field_name' => 'field_portfolio_images',
'label' => 'Project Images',
'required' => 1,
'settings' => array(
'alt_field' => 1,
'default_image' => 0,
'file_directory' => 'portfolio',
'file_extensions' => 'png gif jpg jpeg',
'image_field_caption' => array(
'enabled' => 1,
),
'image_field_caption_wrapper' => array(
'image_field_caption_default' => array(
'format' => 'wysiwyg_simple',
'value' => '',
),
),
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'title_field' => 1,
'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' => 'image',
'video' => 0,
),
'browser_plugins' => array(
'media_default--media_browser_1' => 0,
'media_default--media_browser_my_files' => 0,
'media_internet' => 0,
'unsplash' => 0,
'upload' => 0,
),
),
'type' => 'media_generic',
'weight' => 4,
),
);
$field_instances['node-portfolio-field_project_details_layout'] = array(
'bundle' => 'portfolio',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 5,
),
'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_project_details_layout',
'label' => 'Project Details Layout',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 4,
),
);
$field_instances['node-portfolio-field_project_sidebar'] = array(
'bundle' => 'portfolio',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 4,
),
'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_project_sidebar',
'label' => 'Project Sidebar Width',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 3,
),
);
t('Attachments');
t('Category');
t('Client');
t('Comparison Images');
t('Custom Field');
t('Details');
t('Example custom field');
t('Image Display');
t('Image Display Style');
t('Project Details Layout');
t('Project Images');
t('Project Links');
t('Project Sidebar Width');
t('This field is used to divide portoflio content in categories');
return $field_instances;
}