commited features for showroom release

This commit is contained in:
Bachir Soussi Chiadmi
2016-12-10 18:30:03 +01:00
parent 026a9bc241
commit 138b68ac98
36 changed files with 2694 additions and 969 deletions

View File

@@ -10,60 +10,65 @@
function showroom_field_default_field_instances() {
$field_instances = array();
// Exported field_instance:
// 'field_collection_item-field_showroom_localisation-field_showroom_localisation_loca'.
$field_instances['field_collection_item-field_showroom_localisation-field_showroom_localisation_loca'] = array(
'bundle' => 'field_showroom_localisation',
// Exported field_instance: 'node-breve-field_showroom'.
$field_instances['node-breve-field_showroom'] = array(
'bundle' => 'breve',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'bookmark' => array(
'label' => 'above',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'field_collection_item',
'field_name' => 'field_showroom_localisation_loca',
'label' => 'Localisation',
'required' => 0,
'settings' => array(
'entity_translation_sync' => FALSE,
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'size' => 60,
'cardbig' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'cardfull' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'cardmedium' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'cardsmall' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'type' => 'text_textfield',
'weight' => 32,
),
);
// Exported field_instance:
// 'field_collection_item-field_showroom_localisation-field_showroom_localisation_show'.
$field_instances['field_collection_item-field_showroom_localisation-field_showroom_localisation_show'] = array(
'bundle' => 'field_showroom_localisation',
'default_value' => NULL,
'deleted' => 0,
'description' => '[current-user:field-showroom:tid]',
'display' => array(
'default' => array(
'label' => 'hidden',
'label' => 'above',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_plain',
'type' => 'taxonomy_term_reference_link',
'weight' => 12,
),
'homeblock' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'field_collection_item',
'field_name' => 'field_showroom_localisation_show',
'entity_type' => 'node',
'field_name' => 'field_showroom',
'label' => 'Showroom',
'required' => 0,
'settings' => array(
@@ -72,22 +77,20 @@ function showroom_field_default_field_instances() {
),
'widget' => array(
'active' => 1,
'module' => 'taxonomy',
'module' => 'field_extrawidgets',
'settings' => array(
'autocomplete_path' => 'taxonomy/autocomplete',
'content_taxonomy_autocomplete_new_terms' => 'allow',
'display_empty' => 1,
'formatter' => 'taxonomy_term_reference_link',
'content_taxonomy_opt_groups' => 0,
'display_empty' => 0,
'formatter' => '',
'formatter_settings' => array(),
'size' => 60,
),
'type' => 'taxonomy_autocomplete',
'weight' => 31,
'type' => 'field_extrawidgets_read_only',
'weight' => 4,
),
);
// Exported field_instance: 'node-materiau-field_showroom_localisation'.
$field_instances['node-materiau-field_showroom_localisation'] = array(
// Exported field_instance: 'node-materiau-field_location'.
$field_instances['node-materiau-field_location'] = array(
'bundle' => 'materiau',
'default_value' => NULL,
'deleted' => 0,
@@ -113,16 +116,9 @@ function showroom_field_default_field_instances() {
),
'cardmedium' => array(
'label' => 'above',
'module' => 'field_collection',
'settings' => array(
'add' => '',
'delete' => '',
'description' => 1,
'edit' => '',
'view_mode' => 'full',
),
'type' => 'field_collection_view',
'weight' => 9,
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'cardsmall' => array(
'label' => 'above',
@@ -132,15 +128,9 @@ function showroom_field_default_field_instances() {
),
'default' => array(
'label' => 'above',
'module' => 'field_collection',
'settings' => array(
'add' => 'Ajouter',
'delete' => 'Supprimer',
'description' => TRUE,
'edit' => 'Modifier',
'view_mode' => 'full',
),
'type' => 'field_collection_view',
'module' => 'materio_showroom',
'settings' => array(),
'type' => 'materio_showroom_location_simple_text',
'weight' => 25,
),
'homeblock' => array(
@@ -163,19 +153,21 @@ function showroom_field_default_field_instances() {
),
),
'entity_type' => 'node',
'field_name' => 'field_showroom_localisation',
'label' => 'showroom_localisation',
'field_name' => 'field_location',
'label' => 'Location',
'required' => 0,
'settings' => array(
'entity_translation_sync' => FALSE,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 5,
'active' => 1,
'module' => 'materio_showroom',
'settings' => array(
'vocabulary' => 19,
),
'type' => 'materio_showroom_location_text',
'weight' => -2,
),
);
@@ -1269,13 +1261,11 @@ function showroom_field_default_field_instances() {
t('Body');
t('Description');
t('Email');
t('Localisation');
t('Location');
t('Mémo');
t('Nom');
t('Phone');
t('Showroom');
t('[current-user:field-showroom:tid]');
t('showroom_localisation');
return $field_instances;
}