123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- <?php
- /**
- * @file
- * popsu_actualites.features.field_instance.inc
- */
- /**
- * Implements hook_field_default_field_instances().
- */
- function popsu_actualites_field_default_field_instances() {
- $field_instances = array();
- // Exported field_instance: 'node-popsu_actu-field_popsu_actu_attachment'.
- $field_instances['node-popsu_actu-field_popsu_actu_attachment'] = array(
- 'bundle' => 'popsu_actu',
- 'deleted' => 0,
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'above',
- 'module' => 'file',
- 'settings' => array(),
- 'type' => 'file_default',
- 'weight' => 6,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_actu_attachment',
- 'label' => 'Pièces jointes à cette actualité',
- 'required' => 0,
- 'settings' => array(
- 'description_field' => 1,
- 'file_directory' => '',
- 'file_extensions' => 'txt pdf zip rar xls doc xlsx docx ppt pptx',
- 'filefield_paths' => array(
- 'active_updating' => 0,
- 'file_name' => array(
- 'options' => array(
- 'pathauto' => 1,
- 'transliterate' => 1,
- ),
- 'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
- ),
- 'file_path' => array(
- 'options' => array(
- 'pathauto' => 1,
- 'transliterate' => 1,
- ),
- 'value' => 'nodes/[node:content-type]/[node:nid]/files',
- ),
- 'retroactive_update' => 0,
- ),
- 'max_filesize' => '',
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'file',
- 'settings' => array(
- 'insert' => 0,
- 'insert_absolute' => FALSE,
- 'insert_class' => '',
- 'insert_default' => array(
- 0 => 'auto',
- ),
- 'insert_styles' => array(
- 0 => 'auto',
- ),
- 'insert_width' => '',
- 'progress_indicator' => 'bar',
- ),
- 'type' => 'file_generic',
- 'weight' => 3,
- ),
- );
- // Exported field_instance: 'node-popsu_actu-field_popsu_actu_body'.
- $field_instances['node-popsu_actu-field_popsu_actu_body'] = array(
- 'bundle' => 'popsu_actu',
- 'default_value' => NULL,
- 'deleted' => 0,
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'hidden',
- 'module' => 'text',
- 'settings' => array(),
- 'type' => 'text_default',
- 'weight' => 1,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_actu_body',
- 'label' => 'Texte de l\'actualité',
- 'required' => 0,
- 'settings' => array(
- 'display_summary' => 0,
- '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' => 12,
- ),
- );
- // Exported field_instance: 'node-popsu_actu-field_popsu_actu_date'.
- $field_instances['node-popsu_actu-field_popsu_actu_date'] = array(
- 'bundle' => 'popsu_actu',
- 'deleted' => 0,
- 'description' => 'Si vous souhaitez retarder la publication de cette actualité, choisissez une date dans le futur.',
- 'display' => array(
- 'default' => array(
- 'label' => 'hidden',
- 'module' => 'date',
- 'settings' => array(
- 'format_type' => 'long',
- 'fromto' => 'both',
- 'multiple_from' => '',
- 'multiple_number' => '',
- 'multiple_to' => '',
- ),
- 'type' => 'date_default',
- 'weight' => 2,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_actu_date',
- 'label' => 'Date de début de validité de l\'actualité',
- 'required' => 1,
- 'settings' => array(
- 'default_value' => 'now',
- 'default_value2' => 'same',
- 'default_value_code' => '',
- 'default_value_code2' => '',
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'date',
- 'settings' => array(
- 'increment' => 15,
- 'input_format' => 'd/m/Y - H:i:s',
- 'input_format_custom' => '',
- 'label_position' => 'above',
- 'text_parts' => array(),
- 'year_range' => '-3:+3',
- ),
- 'type' => 'date_popup',
- 'weight' => 9,
- ),
- );
- // Exported field_instance: 'node-popsu_actu-field_popsu_actu_date_fin'.
- $field_instances['node-popsu_actu-field_popsu_actu_date_fin'] = array(
- 'bundle' => 'popsu_actu',
- 'deleted' => 0,
- 'description' => 'Par défaut, les actualités restent 30 jours sur la page d\'accueil. Si vous souhaitez rallonger ce délai, modifier cette date.',
- 'display' => array(
- 'default' => array(
- 'label' => 'hidden',
- 'module' => 'date',
- 'settings' => array(
- 'format_type' => 'long',
- 'fromto' => 'both',
- 'multiple_from' => '',
- 'multiple_number' => '',
- 'multiple_to' => '',
- ),
- 'type' => 'date_default',
- 'weight' => 5,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_actu_date_fin',
- 'label' => 'Date de fin de validité de l\'actualité',
- 'required' => 1,
- 'settings' => array(
- 'default_value' => 'strtotime',
- 'default_value2' => 'same',
- 'default_value_code' => '+ 30 days',
- 'default_value_code2' => '',
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'date',
- 'settings' => array(
- 'increment' => 15,
- 'input_format' => 'd/m/Y - H:i:s',
- 'input_format_custom' => '',
- 'label_position' => 'above',
- 'text_parts' => array(),
- 'year_range' => '-3:+3',
- ),
- 'type' => 'date_popup',
- 'weight' => 10,
- ),
- );
- // Exported field_instance: 'node-popsu_actu-field_popsu_actu_enhome'.
- $field_instances['node-popsu_actu-field_popsu_actu_enhome'] = array(
- 'bundle' => 'popsu_actu',
- 'default_value' => array(
- 0 => array(
- 'value' => 1,
- ),
- ),
- 'deleted' => 0,
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'hidden',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 7,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_actu_enhome',
- 'label' => 'Publier sur la page d\'accueil',
- 'required' => 0,
- 'settings' => array(
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'options',
- 'settings' => array(
- 'display_label' => 0,
- ),
- 'type' => 'options_onoff',
- 'weight' => 8,
- ),
- );
- // Exported field_instance: 'node-popsu_actu-field_popsu_actu_image'.
- $field_instances['node-popsu_actu-field_popsu_actu_image'] = array(
- 'bundle' => 'popsu_actu',
- 'deleted' => 0,
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'hidden',
- 'module' => 'image',
- 'settings' => array(
- 'image_link' => '',
- 'image_style' => '',
- ),
- 'type' => 'image',
- 'weight' => 3,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_actu_image',
- 'label' => 'Image de l\'actualité',
- 'required' => 0,
- 'settings' => array(
- 'alt_field' => 0,
- 'default_image' => 0,
- 'file_directory' => '',
- 'file_extensions' => 'png gif jpg jpeg',
- 'filefield_paths' => array(
- 'active_updating' => 0,
- 'file_name' => array(
- 'options' => array(
- 'pathauto' => 1,
- 'transliterate' => 1,
- ),
- 'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
- ),
- 'file_path' => array(
- 'options' => array(
- 'pathauto' => 1,
- 'transliterate' => 1,
- ),
- 'value' => 'nodes/[node:content-type]/[node:nid]/image',
- ),
- 'retroactive_update' => 0,
- ),
- 'max_filesize' => '',
- 'max_resolution' => '',
- 'min_resolution' => '',
- 'title_field' => 1,
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'image',
- 'settings' => array(
- 'insert' => 0,
- 'insert_absolute' => FALSE,
- 'insert_class' => '',
- 'insert_default' => array(
- 0 => 'auto',
- ),
- 'insert_styles' => array(
- 0 => 'auto',
- ),
- 'insert_width' => '',
- 'preview_image_style' => 'thumbnail',
- 'progress_indicator' => 'throbber',
- ),
- 'type' => 'image_image',
- 'weight' => 4,
- ),
- );
- // Exported field_instance: 'node-popsu_actu-field_popsu_actu_soustitre'.
- $field_instances['node-popsu_actu-field_popsu_actu_soustitre'] = array(
- 'bundle' => 'popsu_actu',
- 'default_value' => NULL,
- 'deleted' => 0,
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'hidden',
- 'module' => 'text',
- 'settings' => array(),
- 'type' => 'text_default',
- 'weight' => 4,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_actu_soustitre',
- 'label' => 'Sous-titre de l\'actualité',
- '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' => 7,
- ),
- );
- // Translatables
- // Included for use with string extractors like potx.
- t('Date de début de validité de l\'actualité');
- t('Date de fin de validité de l\'actualité');
- t('Image de l\'actualité');
- t('Par défaut, les actualités restent 30 jours sur la page d\'accueil. Si vous souhaitez rallonger ce délai, modifier cette date.');
- t('Pièces jointes à cette actualité');
- t('Publier sur la page d\'accueil');
- t('Si vous souhaitez retarder la publication de cette actualité, choisissez une date dans le futur.');
- t('Sous-titre de l\'actualité');
- t('Texte de l\'actualité');
- return $field_instances;
- }
|