소스 검색

caption on home

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);
+    }
+  }
 }