caption on home

This commit is contained in:
2024-06-28 11:53:55 +02:00
parent 71208f5428
commit b3b71af21c
+5
View File
@@ -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);
}
}
}