Browse Source

updated publication feature

Bachir Soussi Chiadmi 9 years ago
parent
commit
8a8ed4f929

+ 8 - 4
sites/all/modules/features/materio_publications/materio_publications.features.field_instance.inc

@@ -58,7 +58,7 @@ function materio_publications_field_default_field_instances() {
         'label' => 'above',
         'settings' => array(),
         'type' => 'hidden',
-        'weight' => 0,
+        'weight' => 3,
       ),
       'teaser' => array(
         'label' => 'hidden',
@@ -138,9 +138,13 @@ function materio_publications_field_default_field_instances() {
         'weight' => 2,
       ),
       'homeblock' => array(
-        'label' => 'above',
-        'settings' => array(),
-        'type' => 'hidden',
+        'label' => 'hidden',
+        'module' => 'image',
+        'settings' => array(
+          'image_link' => 'content',
+          'image_style' => 'publications-home',
+        ),
+        'type' => 'image',
         'weight' => 0,
       ),
       'teaser' => array(

+ 0 - 3
sites/all/modules/features/materio_publications/materio_publications.info

@@ -3,10 +3,7 @@ core = 7.x
 package = Materio
 dependencies[] = ctools
 dependencies[] = features
-dependencies[] = image
 dependencies[] = materio_content_types
-dependencies[] = materio_page_title
-dependencies[] = materio_subscriptions
 dependencies[] = metatag
 dependencies[] = node
 dependencies[] = strongarm

+ 8 - 0
sites/all/modules/features/materio_publications/materio_publications.strongarm.inc

@@ -167,12 +167,20 @@ function materio_publications_strongarm() {
             'weight' => '3',
             'visible' => FALSE,
           ),
+          'homeblock' => array(
+            'weight' => '1',
+            'visible' => FALSE,
+          ),
         ),
         'workflow' => array(
           'default' => array(
             'weight' => '4',
             'visible' => FALSE,
           ),
+          'homeblock' => array(
+            'weight' => '2',
+            'visible' => FALSE,
+          ),
         ),
       ),
     ),