diff --git a/web/themes/custom/reha/reha.theme b/web/themes/custom/reha/reha.theme index 24a2838..3e30b3c 100644 --- a/web/themes/custom/reha/reha.theme +++ b/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); + } + } } \ No newline at end of file