From 2ee8dde488213a0242bfab4d14d7ea1437cacfad Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Fri, 10 Feb 2017 18:18:23 +0100 Subject: [PATCH] added node form columns to clameurs feature --- .../modules/features/clameurs/clameurs.info | 4 + .../features/clameurs/clameurs.strongarm.inc | 237 ++++++++++++++++++ 2 files changed, 241 insertions(+) diff --git a/sites/all/modules/features/clameurs/clameurs.info b/sites/all/modules/features/clameurs/clameurs.info index a4c8bbb6..8a65b3bc 100644 --- a/sites/all/modules/features/clameurs/clameurs.info +++ b/sites/all/modules/features/clameurs/clameurs.info @@ -21,6 +21,7 @@ dependencies[] = libraries dependencies[] = list dependencies[] = login_destination dependencies[] = node +dependencies[] = nodeformcols dependencies[] = number dependencies[] = options dependencies[] = page @@ -186,6 +187,9 @@ features[variable][] = node_preview_thematique features[variable][] = node_submitted_documentair features[variable][] = node_submitted_episode features[variable][] = node_submitted_thematique +features[variable][] = nodeformscols_field_placements_documentair_default +features[variable][] = nodeformscols_field_placements_episode_default +features[variable][] = nodeformscols_field_placements_thematique_default features[variable][] = pathauto_node_documentair_pattern features[variable][] = pathauto_node_episode_pattern features[variable][] = pathauto_node_thematique_pattern diff --git a/sites/all/modules/features/clameurs/clameurs.strongarm.inc b/sites/all/modules/features/clameurs/clameurs.strongarm.inc index 61f59280..424d0bdb 100644 --- a/sites/all/modules/features/clameurs/clameurs.strongarm.inc +++ b/sites/all/modules/features/clameurs/clameurs.strongarm.inc @@ -214,6 +214,243 @@ function clameurs_strongarm() { $strongarm->value = 'main-menu:0'; $export['menu_parent_thematique'] = $strongarm; + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'nodeformscols_field_placements_documentair_default'; + $strongarm->value = array( + 'title' => array( + 'region' => 'main', + 'weight' => '0', + 'has_required' => TRUE, + 'title' => 'Titre', + ), + 'additional_settings' => array( + 'region' => 'footer', + 'weight' => '0', + 'has_required' => FALSE, + 'title' => 'Vertical tabs', + 'hidden' => 0, + ), + 'actions' => array( + 'region' => 'right', + 'weight' => '3', + 'has_required' => FALSE, + 'title' => 'Enregistrer', + 'hidden' => 0, + ), + 'entity_translation_entity_form_language_update' => array( + 'region' => 'footer', + 'weight' => '1', + 'has_required' => FALSE, + 'title' => NULL, + 'hidden' => 1, + ), + 'field_doc' => array( + 'region' => 'right', + 'weight' => '0', + 'has_required' => FALSE, + 'title' => 'Doc', + 'hidden' => 0, + ), + 'field_thematique' => array( + 'region' => 'right', + 'weight' => '1', + 'has_required' => FALSE, + 'title' => 'Thématique', + 'hidden' => 0, + ), + 'group_htabs' => array( + 'region' => 'main', + 'weight' => '3', + 'has_required' => FALSE, + 'title' => 'htabs (Field group)', + 'hidden' => 0, + ), + 'group_texte' => array( + 'region' => 'main', + 'weight' => '4', + 'has_required' => FALSE, + 'title' => 'Texte (Field group)', + 'hidden' => 0, + ), + 'group_video' => array( + 'region' => 'main', + 'weight' => '5', + 'has_required' => FALSE, + 'title' => 'Video (Field group)', + 'hidden' => 0, + ), + 'workflow' => array( + 'region' => 'right', + 'weight' => '2', + 'has_required' => FALSE, + 'title' => 'Brouillon', + 'hidden' => 0, + ), + ); + $export['nodeformscols_field_placements_documentair_default'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'nodeformscols_field_placements_episode_default'; + $strongarm->value = array( + 'title' => array( + 'region' => 'main', + 'weight' => '0', + 'has_required' => TRUE, + 'title' => 'Titre', + ), + 'additional_settings' => array( + 'region' => 'footer', + 'weight' => '0', + 'has_required' => FALSE, + 'title' => 'Vertical tabs', + 'hidden' => 0, + ), + 'actions' => array( + 'region' => 'right', + 'weight' => '3', + 'has_required' => FALSE, + 'title' => 'Enregistrer', + 'hidden' => 0, + ), + 'entity_translation_entity_form_language_update' => array( + 'region' => 'footer', + 'weight' => '1', + 'has_required' => FALSE, + 'title' => NULL, + 'hidden' => 0, + ), + 'field_habiter' => array( + 'region' => 'right', + 'weight' => '0', + 'has_required' => FALSE, + 'title' => 'Habiter', + 'hidden' => 1, + ), + 'field_thematique' => array( + 'region' => 'right', + 'weight' => '1', + 'has_required' => FALSE, + 'title' => 'Thématique', + 'hidden' => 0, + ), + 'group_htabs' => array( + 'region' => 'main', + 'weight' => '3', + 'has_required' => FALSE, + 'title' => 'htabs (Field group)', + 'hidden' => 0, + ), + 'group_texte' => array( + 'region' => 'main', + 'weight' => '9', + 'has_required' => FALSE, + 'title' => 'Texte (Field group)', + 'hidden' => 0, + ), + 'group_video' => array( + 'region' => 'main', + 'weight' => '10', + 'has_required' => FALSE, + 'title' => 'Video (Field group)', + 'hidden' => 0, + ), + 'workflow' => array( + 'region' => 'right', + 'weight' => '2', + 'has_required' => FALSE, + 'title' => 'Brouillon', + 'hidden' => 0, + ), + ); + $export['nodeformscols_field_placements_episode_default'] = $strongarm; + + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'nodeformscols_field_placements_thematique_default'; + $strongarm->value = array( + 'title' => array( + 'region' => 'main', + 'weight' => '0', + 'has_required' => TRUE, + 'title' => 'Titre', + ), + 'additional_settings' => array( + 'region' => 'footer', + 'weight' => '1', + 'has_required' => FALSE, + 'title' => 'Vertical tabs', + 'hidden' => 0, + ), + 'actions' => array( + 'region' => 'right', + 'weight' => '4', + 'has_required' => FALSE, + 'title' => 'Enregistrer', + 'hidden' => 0, + ), + 'entity_translation_entity_form_language_update' => array( + 'region' => 'right', + 'weight' => '2', + 'has_required' => FALSE, + 'title' => NULL, + 'hidden' => 0, + ), + 'field_ecouter' => array( + 'region' => 'right', + 'weight' => '1', + 'has_required' => FALSE, + 'title' => 'Écouter', + 'hidden' => 1, + ), + 'group_htabs' => array( + 'region' => 'main', + 'weight' => '1', + 'has_required' => FALSE, + 'title' => 'htabs (Field group)', + 'hidden' => 0, + ), + 'group_texte' => array( + 'region' => 'main', + 'weight' => '7', + 'has_required' => FALSE, + 'title' => 'Texte (Field group)', + 'hidden' => 0, + ), + 'group_episodes' => array( + 'region' => 'main', + 'weight' => '9', + 'has_required' => FALSE, + 'title' => 'Épisodes (Field group)', + 'hidden' => 0, + ), + 'workflow' => array( + 'region' => 'right', + 'weight' => '3', + 'has_required' => FALSE, + 'title' => 'Target state', + 'hidden' => 0, + ), + 'field_poid' => array( + 'region' => 'right', + 'weight' => '0', + 'has_required' => TRUE, + 'title' => 'Poid', + ), + 'group_eclairage' => array( + 'region' => 'main', + 'weight' => '108', + 'has_required' => FALSE, + 'title' => 'Éclairages (Field group)', + 'hidden' => 0, + ), + ); + $export['nodeformscols_field_placements_thematique_default'] = $strongarm; + $strongarm = new stdClass(); $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ $strongarm->api_version = 1;