updated features : created showroom_localisation field. Perms with showroom role are still failing

This commit is contained in:
Bachir Soussi Chiadmi
2016-11-21 19:39:50 +01:00
parent 039f49aded
commit 091c01ce81
21 changed files with 843 additions and 170 deletions

View File

@@ -10,6 +10,175 @@
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',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 1,
),
),
'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,
),
'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',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_plain',
'weight' => 0,
),
),
'entity_type' => 'field_collection_item',
'field_name' => 'field_showroom_localisation_show',
'label' => 'Showroom',
'required' => 0,
'settings' => array(
'entity_translation_sync' => FALSE,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'taxonomy',
'settings' => array(
'autocomplete_path' => 'taxonomy/autocomplete',
'content_taxonomy_autocomplete_new_terms' => 'allow',
'display_empty' => 1,
'formatter' => 'taxonomy_term_reference_link',
'formatter_settings' => array(),
'size' => 60,
),
'type' => 'taxonomy_autocomplete',
'weight' => 31,
),
);
// Exported field_instance: 'node-materiau-field_showroom_localisation'.
$field_instances['node-materiau-field_showroom_localisation'] = array(
'bundle' => 'materiau',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'bookmark' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'cardbig' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'cardfull' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'cardmedium' => array(
'label' => 'above',
'module' => 'field_collection',
'settings' => array(
'add' => '',
'delete' => '',
'description' => 1,
'edit' => '',
'view_mode' => 'full',
),
'type' => 'field_collection_view',
'weight' => 9,
),
'cardsmall' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'default' => array(
'label' => 'above',
'module' => 'field_collection',
'settings' => array(
'add' => 'Ajouter',
'delete' => 'Supprimer',
'description' => TRUE,
'edit' => 'Modifier',
'view_mode' => 'full',
),
'type' => 'field_collection_view',
'weight' => 25,
),
'homeblock' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'print' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'node',
'field_name' => 'field_showroom_localisation',
'label' => 'showroom_localisation',
'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,
),
);
// Exported field_instance: 'node-showroom-body'.
$field_instances['node-showroom-body'] = array(
'bundle' => 'showroom',
@@ -1100,10 +1269,13 @@ function showroom_field_default_field_instances() {
t('Body');
t('Description');
t('Email');
t('Localisation');
t('Mémo');
t('Nom');
t('Phone');
t('Showroom');
t('[current-user:field-showroom:tid]');
t('showroom_localisation');
return $field_instances;
}