123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423 |
- <?php
- /**
- * @file
- * popsu_documents.features.field.inc
- */
- /**
- * Implements hook_field_default_fields().
- */
- function popsu_documents_field_default_fields() {
- $fields = array();
- // Exported field: 'node-popsu_document-field_popsu_doc_body'.
- $fields['node-popsu_document-field_popsu_doc_body'] = array(
- 'field_config' => array(
- 'active' => '1',
- 'cardinality' => '1',
- 'deleted' => '0',
- 'entity_types' => array(),
- 'field_name' => 'field_popsu_doc_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_document',
- 'default_value' => NULL,
- 'deleted' => '0',
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'above',
- '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_doc_body',
- 'label' => 'Résumé du document',
- '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' => '6',
- ),
- ),
- );
- // Exported field: 'node-popsu_document-field_popsu_doc_files'.
- $fields['node-popsu_document-field_popsu_doc_files'] = array(
- 'field_config' => array(
- 'active' => '1',
- 'cardinality' => '-1',
- 'deleted' => '0',
- 'entity_types' => array(),
- 'field_name' => 'field_popsu_doc_files',
- 'foreign keys' => array(
- 'fid' => array(
- 'columns' => array(
- 'fid' => 'fid',
- ),
- 'table' => 'file_managed',
- ),
- ),
- 'indexes' => array(
- 'fid' => array(
- 0 => 'fid',
- ),
- ),
- 'locked' => '0',
- 'module' => 'file',
- 'settings' => array(
- 'display_default' => 0,
- 'display_field' => 0,
- 'uri_scheme' => 'public',
- ),
- 'translatable' => '0',
- 'type' => 'file',
- ),
- 'field_instance' => array(
- 'bundle' => 'popsu_document',
- 'deleted' => '0',
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'above',
- 'module' => 'file',
- 'settings' => array(),
- 'type' => 'file_default',
- 'weight' => 4,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_doc_files',
- 'label' => 'Fichier(s) joint(s) ',
- '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(
- 'progress_indicator' => 'throbber',
- ),
- 'type' => 'file_generic',
- 'weight' => '3',
- ),
- ),
- );
- // Exported field: 'node-popsu_document-field_popsu_doc_parent'.
- $fields['node-popsu_document-field_popsu_doc_parent'] = array(
- 'field_config' => array(
- 'active' => '1',
- 'cardinality' => '1',
- 'deleted' => '0',
- 'entity_types' => array(),
- 'field_name' => 'field_popsu_doc_parent',
- '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' => 'popsu_actu',
- 'popsu_colloque' => 'popsu_colloque',
- 'popsu_document' => 0,
- 'popsu_page' => 'popsu_page',
- 'popsu_page_neutral' => 'popsu_page_neutral',
- 'popsu_projet' => 'popsu_projet',
- 'popsu_projet_europe' => 'popsu_projet_europe',
- 'popsu_publication' => 'popsu_publication',
- 'popsu_special' => 'popsu_special',
- 'popsu_theme_europe' => 'popsu_theme_europe',
- 'popsu_theme_local' => 'popsu_theme_local',
- 'popsu_theme_trans' => 'popsu_theme_trans',
- 'popsu_ville' => 'popsu_ville',
- 'popsu_ville_europe' => 'popsu_ville_europe',
- ),
- 'view' => array(
- 'args' => array(),
- 'display_name' => '',
- 'view_name' => '',
- ),
- ),
- 'translatable' => '0',
- 'type' => 'node_reference',
- ),
- 'field_instance' => array(
- 'bundle' => 'popsu_document',
- 'default_value' => NULL,
- 'deleted' => '0',
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'above',
- 'module' => 'node_reference',
- 'settings' => array(),
- 'type' => 'node_reference_default',
- 'weight' => 3,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_doc_parent',
- 'label' => 'Page d\'attache du document',
- 'required' => 0,
- 'settings' => array(
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'nodereference_url',
- 'settings' => array(
- 'autocomplete_match' => 'contains',
- 'edit_fallback' => 1,
- 'fallback' => 'autocomplete',
- 'node_link' => array(
- 'destination' => 'node',
- 'full' => 1,
- 'hover_title' => 'Ajouter un document attaché à cette page',
- 'teaser' => 0,
- 'title' => 'Ajouter un document',
- ),
- ),
- 'type' => 'nodereference_url',
- 'weight' => '3',
- ),
- ),
- );
- // Exported field: 'node-popsu_document-field_popsu_doc_source'.
- $fields['node-popsu_document-field_popsu_doc_source'] = array(
- 'field_config' => array(
- 'active' => '1',
- 'cardinality' => '1',
- 'deleted' => '0',
- 'entity_types' => array(),
- 'field_name' => 'field_popsu_doc_source',
- 'foreign keys' => array(
- 'format' => array(
- 'columns' => array(
- 'format' => 'format',
- ),
- 'table' => 'filter_format',
- ),
- ),
- 'indexes' => array(
- 'format' => array(
- 0 => 'format',
- ),
- ),
- 'locked' => '0',
- 'module' => 'text',
- 'settings' => array(
- 'max_length' => '255',
- ),
- 'translatable' => '0',
- 'type' => 'text',
- ),
- 'field_instance' => array(
- 'bundle' => 'popsu_document',
- 'default_value' => NULL,
- 'deleted' => '0',
- 'description' => 'Ex: Article L.Monneraud (Volume 6, déc 2007)',
- 'display' => array(
- 'default' => array(
- 'label' => 'above',
- 'module' => 'text',
- 'settings' => array(),
- 'type' => 'text_default',
- 'weight' => 5,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_doc_source',
- 'label' => 'Origine/source de cette ressource',
- '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' => '5',
- ),
- ),
- );
- // Exported field: 'node-popsu_document-field_popsu_doc_type'.
- $fields['node-popsu_document-field_popsu_doc_type'] = array(
- 'field_config' => array(
- 'active' => '1',
- 'cardinality' => '1',
- 'deleted' => '0',
- 'entity_types' => array(),
- 'field_name' => 'field_popsu_doc_type',
- 'foreign keys' => array(
- 'tid' => array(
- 'columns' => array(
- 'tid' => 'tid',
- ),
- 'table' => 'taxonomy_term_data',
- ),
- ),
- 'indexes' => array(
- 'tid' => array(
- 0 => 'tid',
- ),
- ),
- 'locked' => '0',
- 'module' => 'taxonomy',
- 'settings' => array(
- 'allowed_values' => array(
- 0 => array(
- 'vocabulary' => 'popsu_documents_type',
- 'parent' => '0',
- ),
- ),
- 'options_list_callback' => 'i18n_taxonomy_allowed_values',
- ),
- 'translatable' => '0',
- 'type' => 'taxonomy_term_reference',
- ),
- 'field_instance' => array(
- 'bundle' => 'popsu_document',
- 'default_value' => NULL,
- 'deleted' => '0',
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'above',
- 'module' => 'i18n_taxonomy',
- 'settings' => array(),
- 'type' => 'i18n_taxonomy_term_reference_link',
- 'weight' => 2,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_popsu_doc_type',
- 'label' => 'Type de document',
- 'required' => 1,
- 'settings' => array(
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'options',
- 'settings' => array(),
- 'type' => 'options_select',
- 'weight' => '1',
- ),
- ),
- );
- // Translatables
- // Included for use with string extractors like potx.
- t('Ex: Article L.Monneraud (Volume 6, déc 2007)');
- t('Fichier(s) joint(s) ');
- t('Origine/source de cette ressource');
- t('Page d\'attache du document');
- t('Résumé du document');
- t('Type de document');
- return $fields;
- }
|