147 lines
3.6 KiB
PHP
147 lines
3.6 KiB
PHP
<?php
|
|
/**
|
|
* @file
|
|
* page.features.field_instance.inc
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_field_default_field_instances().
|
|
*/
|
|
function page_field_default_field_instances() {
|
|
$field_instances = array();
|
|
|
|
// Exported field_instance: 'node-page-body'.
|
|
$field_instances['node-page-body'] = array(
|
|
'bundle' => 'page',
|
|
'default_value' => NULL,
|
|
'deleted' => 0,
|
|
'description' => '',
|
|
'display' => array(
|
|
'accueil' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'default' => array(
|
|
'label' => 'hidden',
|
|
'module' => 'text',
|
|
'settings' => array(),
|
|
'type' => 'text_default',
|
|
'weight' => 0,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'hidden',
|
|
'module' => 'text',
|
|
'settings' => array(
|
|
'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,
|
|
'entity_translation_sync' => FALSE,
|
|
'text_processing' => 1,
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'module' => 'text',
|
|
'settings' => array(
|
|
'rows' => 20,
|
|
'summary_rows' => 5,
|
|
),
|
|
'type' => 'text_textarea_with_summary',
|
|
'weight' => 1,
|
|
),
|
|
);
|
|
|
|
// Exported field_instance: 'node-page-field_images'.
|
|
$field_instances['node-page-field_images'] = array(
|
|
'bundle' => 'page',
|
|
'deleted' => 0,
|
|
'description' => '',
|
|
'display' => array(
|
|
'accueil' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'image',
|
|
'settings' => array(
|
|
'image_link' => '',
|
|
'image_style' => '',
|
|
),
|
|
'type' => 'image',
|
|
'weight' => 1,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'field_images',
|
|
'label' => 'images',
|
|
'required' => 0,
|
|
'settings' => array(
|
|
'alt_field' => 0,
|
|
'default_image' => 0,
|
|
'entity_translation_sync' => FALSE,
|
|
'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(
|
|
'insert' => 1,
|
|
'insert_absolute' => 0,
|
|
'insert_class' => '',
|
|
'insert_default' => 'auto',
|
|
'insert_styles' => array(
|
|
'auto' => 'auto',
|
|
'icon_link' => 0,
|
|
'image' => 0,
|
|
'image_large' => 0,
|
|
'image_linkit_thumb' => 0,
|
|
'image_medium' => 0,
|
|
'image_thumbnail' => 0,
|
|
'image_video_thumb_docu' => 0,
|
|
'image_video_thumb_episode' => 0,
|
|
'image_video_thumb_themat' => 0,
|
|
'image_video_thumbnail' => 0,
|
|
'link' => 0,
|
|
),
|
|
'insert_width' => '',
|
|
'preview_image_style' => 'thumbnail',
|
|
'progress_indicator' => 'throbber',
|
|
),
|
|
'type' => 'image_image',
|
|
'weight' => 2,
|
|
),
|
|
);
|
|
|
|
// Translatables
|
|
// Included for use with string extractors like potx.
|
|
t('Body');
|
|
t('images');
|
|
|
|
return $field_instances;
|
|
}
|