updated/sunc feautures betxeen local and online

This commit is contained in:
Bachir Soussi Chiadmi
2014-07-11 18:32:59 +02:00
parent 5cde537e0a
commit 41e7f80383
41 changed files with 6561 additions and 1187 deletions

View File

View File

@@ -98,6 +98,55 @@ function materio_user_profiles_field_default_field_bases() {
'type' => 'addressfield',
);
// Exported field_base: 'field_company'
$field_bases['field_company'] = array(
'active' => 1,
'cardinality' => 1,
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_company',
'field_permissions' => array(
'type' => 2,
),
'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' => 'company',
'parent' => 0,
),
),
'entity_translation_sync' => FALSE,
'options_list_callback' => 'i18n_taxonomy_allowed_values',
'profile2_private' => FALSE,
'user_role_field' => array(
1 => 0,
2 => 0,
3 => 0,
4 => 0,
5 => 5,
6 => 0,
7 => 0,
),
),
'translatable' => 0,
'type' => 'taxonomy_term_reference',
);
// Exported field_base: 'field_employee'
$field_bases['field_employee'] = array(
'active' => 1,
@@ -654,7 +703,7 @@ function materio_user_profiles_field_default_field_bases() {
'entity_types' => array(),
'field_name' => 'field_vat_number_intra_ce',
'field_permissions' => array(
'type' => 1,
'type' => 0,
),
'foreign keys' => array(
'format' => array(
@@ -673,7 +722,7 @@ function materio_user_profiles_field_default_field_bases() {
'module' => 'text',
'settings' => array(
'entity_translation_sync' => FALSE,
'max_length' => 20,
'max_length' => 255,
'profile2_private' => 0,
),
'translatable' => 0,

View File

@@ -41,7 +41,7 @@ function materio_user_profiles_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 6,
'weight' => 4,
),
);
@@ -57,7 +57,7 @@ function materio_user_profiles_field_default_field_instances() {
'module' => 'email',
'settings' => array(),
'type' => 'email_default',
'weight' => 14,
'weight' => 15,
),
),
'entity_type' => 'profile2',
@@ -75,7 +75,7 @@ function materio_user_profiles_field_default_field_instances() {
'size' => 60,
),
'type' => 'email_textfield',
'weight' => 13,
'weight' => 11,
),
);
@@ -130,7 +130,7 @@ function materio_user_profiles_field_default_field_instances() {
),
),
'type' => 'addressfield_standard',
'weight' => 16,
'weight' => 14,
),
);
@@ -171,7 +171,7 @@ function materio_user_profiles_field_default_field_instances() {
'module' => 'number',
'settings' => array(),
'type' => 'number',
'weight' => 9,
'weight' => 7,
),
);
@@ -241,7 +241,7 @@ function materio_user_profiles_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 10,
'weight' => 8,
),
);
@@ -311,7 +311,7 @@ function materio_user_profiles_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 5,
'weight' => 3,
),
);
@@ -620,7 +620,7 @@ function materio_user_profiles_field_default_field_instances() {
'size' => 15,
),
'type' => 'phone_number',
'weight' => 15,
'weight' => 13,
),
);
@@ -655,7 +655,7 @@ function materio_user_profiles_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 7,
'weight' => 5,
),
);
@@ -690,7 +690,7 @@ function materio_user_profiles_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 8,
'weight' => 6,
),
);
@@ -725,7 +725,7 @@ function materio_user_profiles_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 11,
'weight' => 9,
),
);
@@ -774,7 +774,7 @@ function materio_user_profiles_field_default_field_instances() {
'module' => 'link',
'settings' => array(),
'type' => 'link_field',
'weight' => 14,
'weight' => 12,
),
);
@@ -790,7 +790,7 @@ function materio_user_profiles_field_default_field_instances() {
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 15,
'weight' => 14,
),
),
'entity_type' => 'profile2',
@@ -809,7 +809,7 @@ function materio_user_profiles_field_default_field_instances() {
'size' => 60,
),
'type' => 'text_textfield',
'weight' => 12,
'weight' => 10,
),
);
@@ -1261,11 +1261,83 @@ function materio_user_profiles_field_default_field_instances() {
),
);
// Exported field_instance: 'user-user-field_company'
$field_instances['user-user-field_company'] = array(
'bundle' => 'user',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'i18n_taxonomy',
'settings' => array(),
'type' => 'i18n_taxonomy_term_reference_link',
'weight' => 1,
),
),
'entity_type' => 'user',
'field_name' => 'field_company',
'label' => 'Company',
'required' => 0,
'settings' => array(
'entity_translation_sync' => FALSE,
'user_register_form' => 1,
),
'widget' => array(
'active' => 1,
'module' => 'autocomplete_deluxe',
'settings' => array(
'autocomplete_deluxe_path' => 'autocomplete_deluxe/taxonomy',
'content_taxonomy_autocomplete_new_terms' => 'deny',
'size' => 60,
),
'type' => 'autocomplete_deluxe_taxonomy',
'weight' => 2,
),
);
// Exported field_instance: 'user-user-field_memo'
$field_instances['user-user-field_memo'] = array(
'bundle' => 'user',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => 0,
),
),
'entity_type' => 'user',
'field_name' => 'field_memo',
'label' => 'Mémo',
'required' => 0,
'settings' => array(
'entity_translation_sync' => FALSE,
'text_processing' => 0,
'user_register_form' => 0,
),
'widget' => array(
'active' => 1,
'module' => 'text',
'settings' => array(
'rows' => 10,
),
'type' => 'text_textarea',
'weight' => 7,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Activity sector');
t('Administrative email');
t('Adresse');
t('Company');
t('Email');
t('Employee');
t('First name');

View File

@@ -4,15 +4,6 @@
* materio_user_profiles.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function materio_user_profiles_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_default_profile2_type().
*/

View File

@@ -331,8 +331,6 @@ function materio_user_profiles_user_default_permissions() {
'Adhérent' => 'Adhérent',
'Premium' => 'Premium',
'Student' => 'Student',
'Unverified' => 'Unverified',
'Utilisateur' => 'Utilisateur',
),
'module' => 'profile2',
);
@@ -523,6 +521,9 @@ function materio_user_profiles_user_default_permissions() {
$permissions['view field_adresse'] = array(
'name' => 'view field_adresse',
'roles' => array(
'Adhérent' => 'Adhérent',
'Contact opérationnel' => 'Contact opérationnel',
'Premium' => 'Premium',
'administrator' => 'administrator',
'root' => 'root',
),
@@ -593,6 +594,10 @@ function materio_user_profiles_user_default_permissions() {
$permissions['view field_private_phone'] = array(
'name' => 'view field_private_phone',
'roles' => array(
'Adhérent' => 'Adhérent',
'Contact opérationnel' => 'Contact opérationnel',
'Premium' => 'Premium',
'Student' => 'Student',
'administrator' => 'administrator',
'root' => 'root',
),
@@ -633,6 +638,9 @@ function materio_user_profiles_user_default_permissions() {
$permissions['view field_user_website'] = array(
'name' => 'view field_user_website',
'roles' => array(
'Adhérent' => 'Adhérent',
'Contact opérationnel' => 'Contact opérationnel',
'Premium' => 'Premium',
'administrator' => 'administrator',
'root' => 'root',
),
@@ -646,7 +654,6 @@ function materio_user_profiles_user_default_permissions() {
'Adhérent' => 'Adhérent',
'Premium' => 'Premium',
'Student' => 'Student',
'Utilisateur' => 'Utilisateur',
),
'module' => 'profile2',
);
@@ -668,6 +675,7 @@ function materio_user_profiles_user_default_permissions() {
'Contact opérationnel' => 'Contact opérationnel',
'Premium' => 'Premium',
'Student' => 'Student',
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'field_permissions',
@@ -809,6 +817,7 @@ function materio_user_profiles_user_default_permissions() {
'Contact opérationnel' => 'Contact opérationnel',
'Premium' => 'Premium',
'Student' => 'Student',
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'field_permissions',

12
materio_user_profiles/materio_user_profiles.info Executable file → Normal file
View File

@@ -4,7 +4,6 @@ package = Materio
dependencies[] = addressfield
dependencies[] = autocomplete_deluxe
dependencies[] = cck_phone
dependencies[] = ctools
dependencies[] = email
dependencies[] = entity
dependencies[] = features
@@ -16,14 +15,13 @@ dependencies[] = materio_content_types
dependencies[] = number
dependencies[] = options
dependencies[] = profile2
dependencies[] = strongarm
dependencies[] = taxonomy
dependencies[] = text
features[ctools][] = strongarm:strongarm:1
features[features_api][] = api:2
features[field_base][] = field_activity_sector
features[field_base][] = field_administrative_email
features[field_base][] = field_adresse
features[field_base][] = field_company
features[field_base][] = field_employee
features[field_base][] = field_first_name
features[field_base][] = field_memo
@@ -60,6 +58,8 @@ features[field_instance][] = profile2-contact_operationnel-field_private_name
features[field_instance][] = profile2-contact_operationnel-field_private_name_title
features[field_instance][] = profile2-contact_operationnel-field_private_phone
features[field_instance][] = profile2-contact_operationnel-field_private_quality
features[field_instance][] = user-user-field_company
features[field_instance][] = user-user-field_memo
features[profile2_type][] = adherent
features[profile2_type][] = contact_operationnel
features[user_permission][] = administer profile types
@@ -132,8 +132,4 @@ features[user_permission][] = view own field_private_quality
features[user_permission][] = view own field_service
features[user_permission][] = view own field_siret
features[user_permission][] = view own field_user_website
features[variable][] = field_bundle_settings_profile2__adherent
features[variable][] = field_bundle_settings_profile2__contact_operationnel
features_exclude[field_base][field_company] = field_company
features_exclude[field_instance][user-user-field_company] = user-user-field_company
features_exclude[field_instance][user-user-field_memo] = user-user-field_memo
project path = sites/all/modules/features

0
materio_user_profiles/materio_user_profiles.module Executable file → Normal file
View File

View File

@@ -1,44 +0,0 @@
<?php
/**
* @file
* materio_user_profiles.strongarm.inc
*/
/**
* Implements hook_strongarm().
*/
function materio_user_profiles_strongarm() {
$export = array();
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'field_bundle_settings_profile2__adherent';
$strongarm->value = array(
'view_modes' => array(),
'extra_fields' => array(
'form' => array(
'redirect' => array(
'weight' => '14',
),
),
'display' => array(),
),
);
$export['field_bundle_settings_profile2__adherent'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'field_bundle_settings_profile2__contact_operationnel';
$strongarm->value = array(
'view_modes' => array(),
'extra_fields' => array(
'form' => array(),
'display' => array(),
),
);
$export['field_bundle_settings_profile2__contact_operationnel'] = $strongarm;
return $export;
}