From f43260082da096ee170fc269ba29f282ca79a14c Mon Sep 17 00:00:00 2001 From: bachy Date: Fri, 29 Mar 2013 18:37:15 +0100 Subject: [PATCH] updated user profile Signed-off-by: bachy --- .../materio_user_profiles.features.field.inc | 6 +- ...user_profiles.features.user_permission.inc | 74 +++++++++++++------ 2 files changed, 53 insertions(+), 27 deletions(-) diff --git a/materio_user_profiles/materio_user_profiles.features.field.inc b/materio_user_profiles/materio_user_profiles.features.field.inc index 71e1940f..a05189c9 100644 --- a/materio_user_profiles/materio_user_profiles.features.field.inc +++ b/materio_user_profiles/materio_user_profiles.features.field.inc @@ -2068,11 +2068,11 @@ function materio_user_profiles_field_default_fields() { ), 'entity_type' => 'user', 'field_name' => 'field_newsletter', - 'label' => 'newsletter', + 'label' => 'Please send me the newsletter.', 'required' => 0, 'settings' => array( 'entity_translation_sync' => FALSE, - 'user_register_form' => 0, + 'user_register_form' => 1, ), 'widget' => array( 'active' => 1, @@ -2098,13 +2098,13 @@ function materio_user_profiles_field_default_fields() { t('Name'); t('Organization'); t('Phone'); + t('Please send me the newsletter.'); t('Quality'); t('Qualité'); t('SIRET'); t('Title'); t('Titre'); t('Website'); - t('newsletter'); t('service'); return $fields; diff --git a/materio_user_profiles/materio_user_profiles.features.user_permission.inc b/materio_user_profiles/materio_user_profiles.features.user_permission.inc index 0ccb1d46..7b6e5300 100644 --- a/materio_user_profiles/materio_user_profiles.features.user_permission.inc +++ b/materio_user_profiles/materio_user_profiles.features.user_permission.inc @@ -36,7 +36,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -48,7 +49,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -60,7 +62,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -85,7 +88,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -109,7 +113,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -121,7 +126,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -133,8 +139,10 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'Utilisateur', - 4 => 'root', + 3 => 'Student', + 4 => 'Unverified', + 5 => 'Utilisateur', + 6 => 'root', ), 'module' => 'field_permissions', ); @@ -170,7 +178,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -321,6 +330,7 @@ function materio_user_profiles_user_default_permissions() { 'roles' => array( 0 => 'Adhérent', 1 => 'Premium', + 2 => 'Student', ), 'module' => 'profile2', ); @@ -341,7 +351,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -365,7 +376,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -390,7 +402,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -426,7 +439,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -438,8 +452,10 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'Utilisateur', - 4 => 'root', + 3 => 'Student', + 4 => 'Unverified', + 5 => 'Utilisateur', + 6 => 'root', ), 'module' => 'field_permissions', ); @@ -475,7 +491,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -627,6 +644,7 @@ function materio_user_profiles_user_default_permissions() { 'roles' => array( 0 => 'Adhérent', 1 => 'Premium', + 2 => 'Student', ), 'module' => 'profile2', ); @@ -647,7 +665,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -671,7 +690,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -696,7 +716,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -720,7 +741,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -732,7 +754,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', ); @@ -744,8 +767,10 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'Utilisateur', - 4 => 'root', + 3 => 'Student', + 4 => 'Unverified', + 5 => 'Utilisateur', + 6 => 'root', ), 'module' => 'field_permissions', ); @@ -781,7 +806,8 @@ function materio_user_profiles_user_default_permissions() { 0 => 'Adhérent', 1 => 'Contact opérationnel', 2 => 'Premium', - 3 => 'root', + 3 => 'Student', + 4 => 'root', ), 'module' => 'field_permissions', );