bach преди 9 месеца
родител
ревизия
c9fd107421
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 5 0
      web/themes/custom/reha/reha.theme

+ 5 - 0
web/themes/custom/reha/reha.theme

@@ -136,4 +136,9 @@ function reha_preprocess_field(&$variables){
       }
     }
   }
+  if($variables['field_name'] === 'field_image'){
+    if($variables['element']['#view_mode'] === 'home_block'){
+      array_splice($variables['items'], 1);
+    }
+  }
 }