first import
This commit is contained in:
@@ -0,0 +1,423 @@
|
||||
<?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;
|
||||
}
|
||||
Reference in New Issue
Block a user