function panopoly_news_field_default_field_instances in Panopoly News 7
Implements hook_field_default_field_instances().
File
Code
function panopoly_news_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-panopoly_news_article-body'
$field_instances['node-panopoly_news_article-body'] = array(
'bundle' => 'panopoly_news_article',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
'featured' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 300,
),
'type' => 'text_summary_or_trimmed',
'weight' => 1,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => 1,
),
),
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Body',
'required' => 1,
'settings' => array(
'display_summary' => 1,
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 30,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => 5,
),
);
// Exported field_instance: 'node-panopoly_news_article-field_featured_categories'
$field_instances['node-panopoly_news_article-field_featured_categories'] = array(
'bundle' => 'panopoly_news_article',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 4,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_featured_categories',
'label' => 'Categories',
'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' => 4,
),
);
// Exported field_instance: 'node-panopoly_news_article-field_featured_image'
$field_instances['node-panopoly_news_article-field_featured_image'] = array(
'bundle' => 'panopoly_news_article',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => 'panopoly_image_quarter',
),
'type' => 'image',
'weight' => 0,
),
'featured' => 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' => 'content',
'image_style' => 'panopoly_image_quarter',
),
'type' => 'image',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_featured_image',
'label' => 'Primary Image',
'required' => 0,
'settings' => array(
'alt_field' => 1,
'default_image' => 0,
'file_directory' => 'news_articles',
'file_extensions' => 'png gif jpg jpeg',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '300x200',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'image',
'settings' => array(
'manualcrop_crop_info' => 1,
'manualcrop_default_crop_area' => 1,
'manualcrop_enable' => 1,
'manualcrop_inline_crop' => 0,
'manualcrop_instant_crop' => 0,
'manualcrop_instant_preview' => 1,
'manualcrop_keyboard' => 1,
'manualcrop_maximize_default_crop_area' => 0,
'manualcrop_require_cropping' => array(),
'manualcrop_styles_list' => array(
'panopoly_image_featured' => 'panopoly_image_featured',
'panopoly_image_full' => 'panopoly_image_full',
'panopoly_image_thumbnail' => 'panopoly_image_thumbnail',
),
'manualcrop_styles_mode' => 'include',
'manualcrop_thumblist' => 0,
'preview_image_style' => 'panopoly_image_featured',
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => 2,
),
);
// Exported field_instance: 'node-panopoly_news_article-field_featured_status'
$field_instances['node-panopoly_news_article-field_featured_status'] = array(
'bundle' => 'panopoly_news_article',
'default_value' => array(
0 => array(
'value' => 0,
),
),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 3,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 3,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 3,
),
),
'entity_type' => 'node',
'field_name' => 'field_featured_status',
'label' => 'Feature content',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(
'display_label' => 1,
),
'type' => 'options_onoff',
'weight' => 3,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Body');
t('Categories');
t('Feature content');
t('Primary Image');
return $field_instances;
}