first import
This commit is contained in:
@@ -0,0 +1,426 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* popsu_actualites.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function popsu_actualites_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-popsu_actu-field_popsu_actu_body'.
|
||||
$fields['node-popsu_actu-field_popsu_actu_body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_actu_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_actu',
|
||||
'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_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: 'node-popsu_actu-field_popsu_actu_date'.
|
||||
$fields['node-popsu_actu-field_popsu_actu_date'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_actu_date',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => '0',
|
||||
'module' => 'date',
|
||||
'settings' => array(
|
||||
'cache_count' => '4',
|
||||
'cache_enabled' => 0,
|
||||
'granularity' => array(
|
||||
'day' => 'day',
|
||||
'hour' => 0,
|
||||
'minute' => 0,
|
||||
'month' => 'month',
|
||||
'second' => 0,
|
||||
'year' => 'year',
|
||||
),
|
||||
'timezone_db' => '',
|
||||
'todate' => '',
|
||||
'tz_handling' => 'none',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'datetime',
|
||||
),
|
||||
'field_instance' => 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' => 'above',
|
||||
'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 publication de l\'actualité sur la page d\'accueil',
|
||||
'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' => '8',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_actu-field_popsu_actu_date_fin'.
|
||||
$fields['node-popsu_actu-field_popsu_actu_date_fin'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_actu_date_fin',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => '0',
|
||||
'module' => 'date',
|
||||
'settings' => array(
|
||||
'cache_count' => '4',
|
||||
'cache_enabled' => 0,
|
||||
'granularity' => array(
|
||||
'day' => 'day',
|
||||
'hour' => 0,
|
||||
'minute' => 0,
|
||||
'month' => 'month',
|
||||
'second' => 0,
|
||||
'year' => 'year',
|
||||
),
|
||||
'timezone_db' => '',
|
||||
'todate' => '',
|
||||
'tz_handling' => 'none',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'datetime',
|
||||
),
|
||||
'field_instance' => 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' => 'above',
|
||||
'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 publication de l\'actualité sur la page d\'accueil',
|
||||
'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' => '9',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_actu-field_popsu_actu_image'.
|
||||
$fields['node-popsu_actu-field_popsu_actu_image'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_actu_image',
|
||||
'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_actu',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'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(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => '4',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-popsu_actu-field_popsu_actu_soustitre'.
|
||||
$fields['node-popsu_actu-field_popsu_actu_soustitre'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_popsu_actu_soustitre',
|
||||
'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_actu',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'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 publication de l\'actualité sur la page d\'accueil');
|
||||
t('Date de fin de publication de l\'actualité sur la page d\'accueil');
|
||||
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('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 $fields;
|
||||
}
|
||||
Reference in New Issue
Block a user