From b3b71af21cbb0d2fad919f51601ed96494226d99 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 28 Jun 2024 11:53:55 +0200 Subject: [PATCH] caption on home --- web/themes/custom/reha/reha.theme | 5 +++++ 1 file changed, 5 insertions(+) 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