123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344 |
- <?php
- /**
- * @file
- * popsu_publications.features.field.inc
- */
- /**
- * Implements hook_field_default_fields().
- */
- function popsu_publications_field_default_fields() {
- $fields = array();
- // Exported field: 'node-popsu_publication-field_popsu_publication_body'.
- $fields['node-popsu_publication-field_popsu_publication_body'] = array(
- 'field_config' => array(
- 'active' => '1',
- 'cardinality' => '1',
- 'deleted' => '0',
- 'entity_types' => array(),
- 'field_name' => 'field_popsu_publication_body',
- 'foreign keys' => array(
- 'format' => array(
- 'columns' => array(
- 'format' => 'format',
- ),
- 'table' => 'filter_format',
- ),
- ),
- 'indexes' => array(
- 'format' => array(
- 0 => 'format',
- ),
- ),
- 'locked' => '0',
- 'module' => 'text',
- 'settings' => array(),
- 'translatable' => '0',
- 'type' => 'text_with_summary',
- ),
- 'field_instance' => array(
- 'bundle' => 'popsu_publication',
- 'default_value' => NULL,
- 'deleted' => '0',
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'above',
- 'module' => 'text',
- 'settings' => array(),
- 'type' => 'text_default',
- 'weight' => '2',
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_publication_body',
- 'label' => 'Résumé de la publication',
- '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' => '3',
- ),
- ),
- );
- // Exported field: 'node-popsu_publication-field_popsu_publication_cover'.
- $fields['node-popsu_publication-field_popsu_publication_cover'] = array(
- 'field_config' => array(
- 'active' => '1',
- 'cardinality' => '1',
- 'deleted' => '0',
- 'entity_types' => array(),
- 'field_name' => 'field_popsu_publication_cover',
- 'foreign keys' => array(
- 'fid' => array(
- 'columns' => array(
- 'fid' => 'fid',
- ),
- 'table' => 'file_managed',
- ),
- ),
- 'indexes' => array(
- 'fid' => array(
- 0 => 'fid',
- ),
- ),
- 'locked' => '0',
- 'module' => 'image',
- 'settings' => array(
- 'default_image' => 0,
- 'uri_scheme' => 'public',
- ),
- 'translatable' => '0',
- 'type' => 'image',
- ),
- 'field_instance' => array(
- 'bundle' => 'popsu_publication',
- 'deleted' => '0',
- 'description' => 'Vous pouvez charger une image représentant la couverture de cette publication.',
- 'display' => array(
- '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_popsu_publication_cover',
- 'label' => 'Image de couverture',
- '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]/imagecover',
- ),
- 'retroactive_update' => 0,
- ),
- 'max_filesize' => '',
- 'max_resolution' => '',
- 'min_resolution' => '',
- 'title_field' => 0,
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'image',
- 'settings' => array(
- 'preview_image_style' => 'thumbnail',
- 'progress_indicator' => 'throbber',
- ),
- 'type' => 'image_image',
- 'weight' => '2',
- ),
- ),
- );
- // Exported field: 'node-popsu_publication-field_popsu_publication_soustitr'.
- $fields['node-popsu_publication-field_popsu_publication_soustitr'] = array(
- 'field_config' => array(
- 'active' => '1',
- 'cardinality' => '1',
- 'deleted' => '0',
- 'entity_types' => array(),
- 'field_name' => 'field_popsu_publication_soustitr',
- 'foreign keys' => array(
- 'format' => array(
- 'columns' => array(
- 'format' => 'format',
- ),
- 'table' => 'filter_format',
- ),
- ),
- 'indexes' => array(
- 'format' => array(
- 0 => 'format',
- ),
- ),
- 'locked' => '0',
- 'module' => 'text',
- 'settings' => array(),
- 'translatable' => '0',
- 'type' => 'text_long',
- ),
- 'field_instance' => array(
- 'bundle' => 'popsu_publication',
- 'default_value' => NULL,
- 'deleted' => '0',
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'above',
- 'module' => 'text',
- 'settings' => array(),
- 'type' => 'text_default',
- 'weight' => '0',
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_publication_soustitr',
- 'label' => 'Sous titre de la publication',
- 'required' => 0,
- 'settings' => array(
- 'text_processing' => '0',
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'text',
- 'settings' => array(
- 'rows' => '3',
- ),
- 'type' => 'text_textarea',
- 'weight' => '5',
- ),
- ),
- );
- // Exported field: 'node-popsu_publication-field_popsu_publication_theme'.
- $fields['node-popsu_publication-field_popsu_publication_theme'] = array(
- 'field_config' => array(
- 'active' => '1',
- 'cardinality' => '1',
- 'deleted' => '0',
- 'entity_types' => array(),
- 'field_name' => 'field_popsu_publication_theme',
- 'foreign keys' => array(
- 'nid' => array(
- 'columns' => array(
- 'nid' => 'nid',
- ),
- 'table' => 'node',
- ),
- ),
- 'indexes' => array(
- 'nid' => array(
- 0 => 'nid',
- ),
- ),
- 'locked' => '0',
- 'module' => 'node_reference',
- 'settings' => array(
- 'referenceable_types' => array(
- 'article' => 0,
- 'page' => 0,
- 'popsu_actu' => 0,
- 'popsu_colloque' => 0,
- 'popsu_document' => 0,
- 'popsu_page' => 0,
- 'popsu_page_neutral' => 0,
- 'popsu_projet' => 0,
- 'popsu_projet_europe' => 0,
- 'popsu_publication' => 0,
- 'popsu_special' => 0,
- 'popsu_theme_europe' => 'popsu_theme_europe',
- 'popsu_theme_local' => 0,
- 'popsu_theme_trans' => 0,
- 'popsu_ville' => 0,
- 'popsu_ville_europe' => 0,
- ),
- 'view' => array(
- 'args' => array(),
- 'display_name' => '',
- 'view_name' => '',
- ),
- ),
- 'translatable' => '0',
- 'type' => 'node_reference',
- ),
- 'field_instance' => array(
- 'bundle' => 'popsu_publication',
- 'default_value' => NULL,
- 'deleted' => '0',
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'above',
- 'module' => 'node_reference',
- 'settings' => array(),
- 'type' => 'node_reference_default',
- 'weight' => 5,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_publication_theme',
- 'label' => 'ou Thème (POPSU Europe)',
- 'required' => 0,
- 'settings' => array(
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'options',
- 'settings' => array(),
- 'type' => 'options_select',
- 'weight' => '3',
- ),
- ),
- );
- // Translatables
- // Included for use with string extractors like potx.
- t('Image de couverture');
- t('Résumé de la publication');
- t('Sous titre de la publication');
- t('Vous pouvez charger une image représentant la couverture de cette publication.');
- t('ou Thème (POPSU Europe)');
- return $fields;
- }
|