From 4664d4cf28b9115878cc4b5901b92ce9e914e613 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 8 Mar 2017 19:10:43 +0100 Subject: [PATCH] removed images display for pages --- .../page/page.features.field_instance.inc | 10 ++---- .../modules/features/page/page.strongarm.inc | 36 +++++++++++++++++-- 2 files changed, 37 insertions(+), 9 deletions(-) diff --git a/sites/all/modules/features/page/page.features.field_instance.inc b/sites/all/modules/features/page/page.features.field_instance.inc index e9333998..ff93d8c4 100644 --- a/sites/all/modules/features/page/page.features.field_instance.inc +++ b/sites/all/modules/features/page/page.features.field_instance.inc @@ -87,13 +87,9 @@ function page_field_default_field_instances() { ), 'default' => array( 'label' => 'above', - 'module' => 'image', - 'settings' => array( - 'image_link' => '', - 'image_style' => '', - ), - 'type' => 'image', - 'weight' => 1, + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 3, ), 'teaser' => array( 'label' => 'above', diff --git a/sites/all/modules/features/page/page.strongarm.inc b/sites/all/modules/features/page/page.strongarm.inc index 01f23940..ec868d1a 100644 --- a/sites/all/modules/features/page/page.strongarm.inc +++ b/sites/all/modules/features/page/page.strongarm.inc @@ -29,7 +29,26 @@ function page_strongarm() { $strongarm->api_version = 1; $strongarm->name = 'field_bundle_settings_node__page'; $strongarm->value = array( - 'view_modes' => array(), + 'view_modes' => array( + 'teaser' => array( + 'custom_settings' => TRUE, + ), + 'accueil' => array( + 'custom_settings' => TRUE, + ), + 'attente' => array( + 'custom_settings' => TRUE, + ), + 'full' => array( + 'custom_settings' => FALSE, + ), + 'rss' => array( + 'custom_settings' => FALSE, + ), + 'token' => array( + 'custom_settings' => FALSE, + ), + ), 'extra_fields' => array( 'form' => array( 'title' => array( @@ -45,7 +64,20 @@ function page_strongarm() { 'weight' => '5', ), ), - 'display' => array(), + 'display' => array( + 'workflow_current_state' => array( + 'default' => array( + 'weight' => '1', + 'visible' => FALSE, + ), + ), + 'workflow' => array( + 'default' => array( + 'weight' => '2', + 'visible' => FALSE, + ), + ), + ), ), ); $export['field_bundle_settings_node__page'] = $strongarm;