Browse Source

regenerate feature

Yves Chedemois 13 years ago
parent
commit
4736e29a2b
4 changed files with 130 additions and 5 deletions
  1. 9 5
      fgcf.drush.inc
  2. 119 0
      fgcf.features.fieldgroup.inc
  3. 2 0
      fgcf.features.inc
  4. 0 0
      fgcf.module

+ 9 - 5
fgcf.drush.inc

@@ -57,13 +57,14 @@ function fgcf_content_default_fields() {
       'default_value' => array(
         '0' => array(
           'value' => '',
+          'format' => '1',
           '_error_element' => 'default_value_widget][field_fgcf_fiche_contenu][0][value',
         ),
       ),
       'default_value_php' => NULL,
       'label' => 'Contenu',
       'weight' => '1',
-      'description' => '',
+      'description' => '<b>Important : </b>Ne pas utiliser de mise en forme avancée (titres, caractères gras, tableaux...). Seules les listes à puces non numérotées sont autorisées.',
       'type' => 'text_textarea',
       'module' => 'text',
     ),
@@ -433,13 +434,14 @@ o|Oui',
       'default_value' => array(
         '0' => array(
           'value' => '',
+          'format' => '1',
           '_error_element' => 'default_value_widget][field_fgcf_fiche_objectif][0][value',
         ),
       ),
       'default_value_php' => NULL,
       'label' => 'Objectif',
       'weight' => 0,
-      'description' => '',
+      'description' => '<b>Important : </b>Ne pas utiliser de mise en forme avancée (titres, caractères gras, tableaux...). Seules les listes à puces non numérotées sont autorisées.',
       'type' => 'text_textarea',
       'module' => 'text',
     ),
@@ -493,6 +495,8 @@ o|Oui',
       'page' => 0,
       'story' => 0,
     ),
+    'advanced_view' => '',
+    'advanced_view_args' => '',
     'widget' => array(
       'autocomplete_match' => 'contains',
       'size' => 60,
@@ -525,7 +529,7 @@ o|Oui',
         'exclude' => 0,
       ),
       'full' => array(
-        'format' => 'link',
+        'format' => 'default',
         'exclude' => 0,
       ),
       '4' => array(
@@ -653,7 +657,7 @@ o|Oui',
         'exclude' => 0,
       ),
       'full' => array(
-        'format' => 'link',
+        'format' => 'default',
         'exclude' => 0,
       ),
       '4' => array(
@@ -714,7 +718,7 @@ o|Oui',
         'exclude' => 0,
       ),
       'full' => array(
-        'format' => 'link',
+        'format' => 'default',
         'exclude' => 0,
       ),
       '4' => array(

+ 119 - 0
fgcf.features.fieldgroup.inc

@@ -0,0 +1,119 @@
+<?php
+
+/**
+ * Implementation of hook_fieldgroup_default_groups().
+ */
+function fgcf_fieldgroup_default_groups() {
+  $groups = array();
+
+  // Exported group: group_fgcf_fiche_meta
+  $groups[] = array(
+    'group_type' => 'standard',
+    'type_name' => 'fgcf_fiche',
+    'group_name' => 'group_fgcf_fiche_meta',
+    'label' => 'Méta',
+    'settings' => array(
+      'form' => array(
+        'style' => 'fieldset',
+        'description' => '',
+      ),
+      'display' => array(
+        'weight' => '2',
+        'label' => 'above',
+        'teaser' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+        'full' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+        'description' => '',
+        '4' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+        '2' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+        '3' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+        'token' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+      ),
+    ),
+    'weight' => '2',
+    'fields' => array(
+      '0' => 'field_fgcf_fiche_organisme',
+      '1' => 'field_fgcf_fiche_modalite',
+      '2' => 'field_fgcf_fiche_dif',
+      '3' => 'field_fgcf_fiche_heures',
+      '4' => 'field_fgcf_fiche_jours',
+      '5' => 'field_fgcf_fiche_format',
+      '6' => 'field_fgcf_fiche_supports',
+      '7' => 'field_fgcf_fiche_sanction',
+      '8' => 'field_fgcf_fiche_public',
+    ),
+  );
+
+  // Exported group: group_prestataire_branding
+  $groups[] = array(
+    'group_type' => 'standard',
+    'type_name' => 'fgcf_prestataire',
+    'group_name' => 'group_prestataire_branding',
+    'label' => 'Branding',
+    'settings' => array(
+      'form' => array(
+        'style' => 'fieldset',
+        'description' => '',
+      ),
+      'display' => array(
+        'weight' => '-2',
+        'label' => 'hidden',
+        'teaser' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+        'full' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+        'description' => '',
+        '4' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+        '2' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+        '3' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+        'token' => array(
+          'format' => 'fieldset',
+          'exclude' => 0,
+        ),
+      ),
+    ),
+    'weight' => '-2',
+    'fields' => array(
+      '0' => 'field_fgcf_prestataire_logo',
+      '1' => 'field_fgcf_prestataire_link',
+    ),
+  );
+
+  // Translatables
+  array(
+    t('Branding'),
+    t('Méta'),
+  );
+
+  return $groups;
+}

+ 2 - 0
fgcf.features.inc

@@ -28,6 +28,8 @@ features[content][] = "fgcf_fiche-field_fgcf_fiche_supports"
 features[content][] = "fgcf_prestataire-field_fgcf_prestataire_link"
 features[content][] = "fgcf_prestataire-field_fgcf_prestataire_logo"
 features[content][] = "fgcf_thematique-field_fgcf_thematique_logo"
+features[fieldgroup][] = "fgcf_fiche-group_fgcf_fiche_meta"
+features[fieldgroup][] = "fgcf_prestataire-group_prestataire_branding"
 features[imagecache][] = "prestataire_logo_full"
 features[imagecache][] = "prestataire_logo_liste"
 features[node][] = "fgcf_fiche"

+ 0 - 0
fgcf.module