|
@@ -0,0 +1,1125 @@
|
|
|
|
+<?php
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Helper to implementation of hook_content_default_fields().
|
|
|
|
+ */
|
|
|
|
+function _fgcf_content_default_fields() {
|
|
|
|
+ $fields = array();
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_contenu
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_contenu',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '1',
|
|
|
|
+ 'parent' => '',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 1,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'text',
|
|
|
|
+ 'required' => '1',
|
|
|
|
+ 'multiple' => '0',
|
|
|
|
+ 'module' => 'text',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'text_processing' => '1',
|
|
|
|
+ 'max_length' => '',
|
|
|
|
+ 'allowed_values' => '',
|
|
|
|
+ 'allowed_values_php' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'rows' => '10',
|
|
|
|
+ 'size' => 60,
|
|
|
|
+ 'default_value' => array(
|
|
|
|
+ '0' => array(
|
|
|
|
+ 'value' => '',
|
|
|
|
+ '_error_element' => 'default_value_widget][field_fgcf_fiche_contenu][0][value',
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Contenu',
|
|
|
|
+ 'weight' => '1',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'text_textarea',
|
|
|
|
+ 'module' => 'text',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_dif
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_dif',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '8',
|
|
|
|
+ 'parent' => 'group_fgcf_fiche_meta',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'text',
|
|
|
|
+ 'required' => '1',
|
|
|
|
+ 'multiple' => '0',
|
|
|
|
+ 'module' => 'text',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'text_processing' => '0',
|
|
|
|
+ 'max_length' => '',
|
|
|
|
+ 'allowed_values' => 'n|Non
|
|
|
|
+o|Oui',
|
|
|
|
+ 'allowed_values_php' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'default_value' => array(
|
|
|
|
+ '0' => array(
|
|
|
|
+ 'value' => 'n',
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Eligibilité DIF',
|
|
|
|
+ 'weight' => '8',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'optionwidgets_buttons',
|
|
|
|
+ 'module' => 'optionwidgets',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_format
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_format',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '11',
|
|
|
|
+ 'parent' => 'group_fgcf_fiche_meta',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'link',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'content_taxonomy',
|
|
|
|
+ 'required' => '1',
|
|
|
|
+ 'multiple' => '1',
|
|
|
|
+ 'module' => 'content_taxonomy',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'save_term_node' => 0,
|
|
|
|
+ 'vid' => '2',
|
|
|
|
+ 'parent' => '0',
|
|
|
|
+ 'parent_php_code' => '',
|
|
|
|
+ 'depth' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'group_parent' => '0',
|
|
|
|
+ 'show_depth' => 1,
|
|
|
|
+ 'default_value' => NULL,
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'new_terms' => 'insert',
|
|
|
|
+ 'extra_parent' => '0',
|
|
|
|
+ 'maxlength' => '255',
|
|
|
|
+ 'label' => 'Format de cours',
|
|
|
|
+ 'weight' => '11',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'content_taxonomy_autocomplete',
|
|
|
|
+ 'module' => 'content_taxonomy_autocomplete',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_heures
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_heures',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '9',
|
|
|
|
+ 'parent' => 'group_fgcf_fiche_meta',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'number_float',
|
|
|
|
+ 'required' => '0',
|
|
|
|
+ 'multiple' => '0',
|
|
|
|
+ 'module' => 'number',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'prefix' => '',
|
|
|
|
+ 'suffix' => ' heure| heures',
|
|
|
|
+ 'min' => '0',
|
|
|
|
+ 'max' => '',
|
|
|
|
+ 'allowed_values' => '',
|
|
|
|
+ 'allowed_values_php' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'default_value' => array(
|
|
|
|
+ '0' => array(
|
|
|
|
+ 'value' => '',
|
|
|
|
+ '_error_element' => 'default_value_widget][field_fgcf_fiche_heures][0][value',
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Durée',
|
|
|
|
+ 'weight' => '9',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'number',
|
|
|
|
+ 'module' => 'number',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_jours
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_jours',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '10',
|
|
|
|
+ 'parent' => 'group_fgcf_fiche_meta',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'number_float',
|
|
|
|
+ 'required' => '0',
|
|
|
|
+ 'multiple' => '0',
|
|
|
|
+ 'module' => 'number',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'prefix' => '',
|
|
|
|
+ 'suffix' => ' jour| jours',
|
|
|
|
+ 'min' => '0',
|
|
|
|
+ 'max' => '',
|
|
|
|
+ 'allowed_values' => '',
|
|
|
|
+ 'allowed_values_php' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'default_value' => array(
|
|
|
|
+ '0' => array(
|
|
|
|
+ 'value' => '',
|
|
|
|
+ '_error_element' => 'default_value_widget][field_fgcf_fiche_jours][0][value',
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Longueur',
|
|
|
|
+ 'weight' => '10',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'number',
|
|
|
|
+ 'module' => 'number',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_modalite
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_modalite',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '7',
|
|
|
|
+ 'parent' => 'group_fgcf_fiche_meta',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'number_integer',
|
|
|
|
+ 'required' => '1',
|
|
|
|
+ 'multiple' => '1',
|
|
|
|
+ 'module' => 'number',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'prefix' => '',
|
|
|
|
+ 'suffix' => '',
|
|
|
|
+ 'min' => '',
|
|
|
|
+ 'max' => '',
|
|
|
|
+ 'allowed_values' => '1|Intra-entreprise
|
|
|
|
+2|Inter-entreprises
|
|
|
|
+3|A distance: internet/téléphone',
|
|
|
|
+ 'allowed_values_php' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'default_value' => array(
|
|
|
|
+ '0' => array(
|
|
|
|
+ 'value' => '',
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Modalité',
|
|
|
|
+ 'weight' => '7',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'optionwidgets_buttons',
|
|
|
|
+ 'module' => 'optionwidgets',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_objectif
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_objectif',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => 0,
|
|
|
|
+ 'parent' => '',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 1,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'text',
|
|
|
|
+ 'required' => '1',
|
|
|
|
+ 'multiple' => '0',
|
|
|
|
+ 'module' => 'text',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'text_processing' => '1',
|
|
|
|
+ 'max_length' => '1000',
|
|
|
|
+ 'allowed_values' => '',
|
|
|
|
+ 'allowed_values_php' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'rows' => '3',
|
|
|
|
+ 'size' => 60,
|
|
|
|
+ 'default_value' => array(
|
|
|
|
+ '0' => array(
|
|
|
|
+ 'value' => '',
|
|
|
|
+ '_error_element' => 'default_value_widget][field_fgcf_fiche_objectif][0][value',
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Objectif',
|
|
|
|
+ 'weight' => 0,
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'text_textarea',
|
|
|
|
+ 'module' => 'text',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_organisme
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_organisme',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '6',
|
|
|
|
+ 'parent' => 'group_fgcf_fiche_meta',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'nodereference',
|
|
|
|
+ 'required' => '1',
|
|
|
|
+ 'multiple' => '1',
|
|
|
|
+ 'module' => 'nodereference',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'referenceable_types' => array(
|
|
|
|
+ 'fgcf_prestataire' => 'fgcf_prestataire',
|
|
|
|
+ 'fgcf_thematique' => 0,
|
|
|
|
+ 'fgcf_fiche' => 0,
|
|
|
|
+ 'page' => 0,
|
|
|
|
+ 'story' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'advanced_view' => '',
|
|
|
|
+ 'advanced_view_args' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'autocomplete_match' => 'contains',
|
|
|
|
+ 'size' => 60,
|
|
|
|
+ 'default_value' => array(
|
|
|
|
+ '0' => array(
|
|
|
|
+ 'nid' => '',
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Organisme de formation',
|
|
|
|
+ 'weight' => '6',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'nodereference_select',
|
|
|
|
+ 'module' => 'nodereference',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_public
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_public',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '14',
|
|
|
|
+ 'parent' => 'group_fgcf_fiche_meta',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'link',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'content_taxonomy',
|
|
|
|
+ 'required' => '1',
|
|
|
|
+ 'multiple' => '1',
|
|
|
|
+ 'module' => 'content_taxonomy',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'save_term_node' => 0,
|
|
|
|
+ 'vid' => '5',
|
|
|
|
+ 'parent' => '0',
|
|
|
|
+ 'parent_php_code' => '',
|
|
|
|
+ 'depth' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'new_terms' => 'insert',
|
|
|
|
+ 'extra_parent' => '0',
|
|
|
|
+ 'maxlength' => '255',
|
|
|
|
+ 'active_tags' => NULL,
|
|
|
|
+ 'default_value' => array(
|
|
|
|
+ '0' => array(
|
|
|
|
+ 'value' => '31',
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Public visé',
|
|
|
|
+ 'weight' => '14',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'content_taxonomy_autocomplete',
|
|
|
|
+ 'module' => 'content_taxonomy_autocomplete',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_reference
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_reference',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '-2',
|
|
|
|
+ 'parent' => '',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'text',
|
|
|
|
+ 'required' => '1',
|
|
|
|
+ 'multiple' => '0',
|
|
|
|
+ 'module' => 'text',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'text_processing' => '0',
|
|
|
|
+ 'max_length' => '10',
|
|
|
|
+ 'allowed_values' => '',
|
|
|
|
+ 'allowed_values_php' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'rows' => 5,
|
|
|
|
+ 'size' => '10',
|
|
|
|
+ 'default_value' => array(
|
|
|
|
+ '0' => array(
|
|
|
|
+ 'value' => '',
|
|
|
|
+ '_error_element' => 'default_value_widget][field_fgcf_fiche_reference][0][value',
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Référence',
|
|
|
|
+ 'weight' => '-2',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'text_textfield',
|
|
|
|
+ 'module' => 'text',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_sanction
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_sanction',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '13',
|
|
|
|
+ 'parent' => 'group_fgcf_fiche_meta',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'link',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'content_taxonomy',
|
|
|
|
+ 'required' => '0',
|
|
|
|
+ 'multiple' => '1',
|
|
|
|
+ 'module' => 'content_taxonomy',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'save_term_node' => 0,
|
|
|
|
+ 'vid' => '4',
|
|
|
|
+ 'parent' => '0',
|
|
|
|
+ 'parent_php_code' => '',
|
|
|
|
+ 'depth' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'new_terms' => 'insert',
|
|
|
|
+ 'extra_parent' => '0',
|
|
|
|
+ 'maxlength' => '255',
|
|
|
|
+ 'active_tags' => NULL,
|
|
|
|
+ 'default_value' => NULL,
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Sanction',
|
|
|
|
+ 'weight' => '13',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'content_taxonomy_autocomplete',
|
|
|
|
+ 'module' => 'content_taxonomy_autocomplete',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_fiche_supports
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_fiche_supports',
|
|
|
|
+ 'type_name' => 'fgcf_fiche',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '12',
|
|
|
|
+ 'parent' => 'group_fgcf_fiche_meta',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'above',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'link',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'content_taxonomy',
|
|
|
|
+ 'required' => '0',
|
|
|
|
+ 'multiple' => '1',
|
|
|
|
+ 'module' => 'content_taxonomy',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'save_term_node' => 0,
|
|
|
|
+ 'vid' => '3',
|
|
|
|
+ 'parent' => '0',
|
|
|
|
+ 'parent_php_code' => '',
|
|
|
|
+ 'depth' => '',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'new_terms' => 'insert',
|
|
|
|
+ 'extra_parent' => '0',
|
|
|
|
+ 'maxlength' => '255',
|
|
|
|
+ 'active_tags' => NULL,
|
|
|
|
+ 'default_value' => NULL,
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Supports remis',
|
|
|
|
+ 'weight' => '12',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'content_taxonomy_autocomplete',
|
|
|
|
+ 'module' => 'content_taxonomy_autocomplete',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_prestataire_link
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_prestataire_link',
|
|
|
|
+ 'type_name' => 'fgcf_prestataire',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '1',
|
|
|
|
+ 'parent' => 'group_prestataire_branding',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'hidden',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'default',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'link',
|
|
|
|
+ 'required' => '0',
|
|
|
|
+ 'multiple' => '0',
|
|
|
|
+ 'module' => 'link',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'attributes' => array(
|
|
|
|
+ 'target' => '_blank',
|
|
|
|
+ 'rel' => 'nofollow',
|
|
|
|
+ 'class' => '',
|
|
|
|
+ 'title' => '[title]',
|
|
|
|
+ ),
|
|
|
|
+ 'display' => array(
|
|
|
|
+ 'url_cutoff' => '80',
|
|
|
|
+ ),
|
|
|
|
+ 'url' => 0,
|
|
|
|
+ 'title' => 'optional',
|
|
|
|
+ 'title_value' => 'Site de [title]',
|
|
|
|
+ 'enable_tokens' => 1,
|
|
|
|
+ 'validate_url' => 1,
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'default_value' => array(
|
|
|
|
+ '0' => array(
|
|
|
|
+ 'title' => '',
|
|
|
|
+ 'url' => '',
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'default_value_php' => NULL,
|
|
|
|
+ 'label' => 'Site',
|
|
|
|
+ 'weight' => '1',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'link',
|
|
|
|
+ 'module' => 'link',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_prestataire_logo
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_prestataire_logo',
|
|
|
|
+ 'type_name' => 'fgcf_prestataire',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => 0,
|
|
|
|
+ 'parent' => 'group_prestataire_branding',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'hidden',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'filefield',
|
|
|
|
+ 'required' => '0',
|
|
|
|
+ 'multiple' => '0',
|
|
|
|
+ 'module' => 'filefield',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'list_field' => '0',
|
|
|
|
+ 'list_default' => 1,
|
|
|
|
+ 'description_field' => '0',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'file_extensions' => 'png gif jpg jpeg',
|
|
|
|
+ 'file_path' => '',
|
|
|
|
+ 'progress_indicator' => 'bar',
|
|
|
|
+ 'max_filesize_per_file' => '1M',
|
|
|
|
+ 'max_filesize_per_node' => '',
|
|
|
|
+ 'max_resolution' => '640x480',
|
|
|
|
+ 'min_resolution' => 0,
|
|
|
|
+ 'alt' => '',
|
|
|
|
+ 'custom_alt' => 0,
|
|
|
|
+ 'title' => '',
|
|
|
|
+ 'custom_title' => 0,
|
|
|
|
+ 'title_type' => 'textfield',
|
|
|
|
+ 'default_image' => NULL,
|
|
|
|
+ 'use_default_image' => 0,
|
|
|
|
+ 'label' => 'Logo',
|
|
|
|
+ 'weight' => 0,
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'imagefield_widget',
|
|
|
|
+ 'module' => 'imagefield',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Exported field: field_fgcf_thematique_logo
|
|
|
|
+ $fields[] = array(
|
|
|
|
+ 'field_name' => 'field_fgcf_thematique_logo',
|
|
|
|
+ 'type_name' => 'fgcf_thematique',
|
|
|
|
+ 'display_settings' => array(
|
|
|
|
+ 'weight' => '-3',
|
|
|
|
+ 'parent' => '',
|
|
|
|
+ 'label' => array(
|
|
|
|
+ 'format' => 'hidden',
|
|
|
|
+ ),
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'image_plain',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'widget_active' => '1',
|
|
|
|
+ 'type' => 'filefield',
|
|
|
|
+ 'required' => '1',
|
|
|
|
+ 'multiple' => '0',
|
|
|
|
+ 'module' => 'filefield',
|
|
|
|
+ 'active' => '1',
|
|
|
|
+ 'list_field' => '0',
|
|
|
|
+ 'list_default' => 1,
|
|
|
|
+ 'description_field' => '0',
|
|
|
|
+ 'widget' => array(
|
|
|
|
+ 'file_extensions' => 'png gif jpg jpeg',
|
|
|
|
+ 'file_path' => '',
|
|
|
|
+ 'progress_indicator' => 'bar',
|
|
|
|
+ 'max_filesize_per_file' => '',
|
|
|
|
+ 'max_filesize_per_node' => '',
|
|
|
|
+ 'max_resolution' => '60x60',
|
|
|
|
+ 'min_resolution' => '0',
|
|
|
|
+ 'alt' => '',
|
|
|
|
+ 'custom_alt' => 0,
|
|
|
|
+ 'title' => '',
|
|
|
|
+ 'custom_title' => 0,
|
|
|
|
+ 'title_type' => 'textfield',
|
|
|
|
+ 'default_image' => NULL,
|
|
|
|
+ 'use_default_image' => 0,
|
|
|
|
+ 'label' => 'Icône',
|
|
|
|
+ 'weight' => '-3',
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'type' => 'imagefield_widget',
|
|
|
|
+ 'module' => 'imagefield',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Translatables
|
|
|
|
+ array(
|
|
|
|
+ t('Contenu'),
|
|
|
|
+ t('Durée'),
|
|
|
|
+ t('Eligibilité DIF'),
|
|
|
|
+ t('Format de cours'),
|
|
|
|
+ t('Icône'),
|
|
|
|
+ t('Logo'),
|
|
|
|
+ t('Longueur'),
|
|
|
|
+ t('Modalité'),
|
|
|
|
+ t('Objectif'),
|
|
|
|
+ t('Organisme de formation'),
|
|
|
|
+ t('Public visé'),
|
|
|
|
+ t('Référence'),
|
|
|
|
+ t('Sanction'),
|
|
|
|
+ t('Site'),
|
|
|
|
+ t('Supports remis'),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ return $fields;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Helper to 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' => 1,
|
|
|
|
+ ),
|
|
|
|
+ '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(
|
|
|
|
+ 'description' => '',
|
|
|
|
+ 'teaser' => array(
|
|
|
|
+ 'format' => 'fieldset',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'full' => array(
|
|
|
|
+ 'format' => 'fieldset',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '4' => array(
|
|
|
|
+ 'format' => 'fieldset',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '2' => array(
|
|
|
|
+ 'format' => 'fieldset',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ '3' => array(
|
|
|
|
+ 'format' => 'fieldset',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'token' => array(
|
|
|
|
+ 'format' => 'fieldset',
|
|
|
|
+ 'exclude' => 0,
|
|
|
|
+ ),
|
|
|
|
+ 'label' => 'hidden',
|
|
|
|
+ ),
|
|
|
|
+ ),
|
|
|
|
+ 'weight' => '-2',
|
|
|
|
+ 'fields' => array(
|
|
|
|
+ '0' => 'field_fgcf_prestataire_logo',
|
|
|
|
+ '1' => 'field_fgcf_prestataire_link',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ // Translatables
|
|
|
|
+ array(
|
|
|
|
+ t('Branding'),
|
|
|
|
+ t('Méta'),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ return $groups;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * Helper to implementation of hook_user_default_permissions().
|
|
|
|
+ */
|
|
|
|
+function _fgcf_user_default_permissions() {
|
|
|
|
+ $permissions = array();
|
|
|
|
+
|
|
|
|
+ // Exported permission: access course catalog
|
|
|
|
+ $permissions[] = array(
|
|
|
|
+ 'name' => 'access course catalog',
|
|
|
|
+ 'roles' => array(
|
|
|
|
+ '0' => 'anonymous user',
|
|
|
|
+ '1' => 'authenticated user',
|
|
|
|
+ ),
|
|
|
|
+ );
|
|
|
|
+
|
|
|
|
+ return $permissions;
|
|
|
|
+}
|