added code to remove exposedfilter when view empty

This commit is contained in:
naomi 2018-07-09 20:38:48 +02:00
parent 3f01a3ad41
commit 08fe6dc362

View File

@ -149,3 +149,9 @@ function opencase_uninstall() {
Drupal::configFactory()->getEditable($config)->delete(); Drupal::configFactory()->getEditable($config)->delete();
} }
} }
function opencase_views_pre_render($view) {
if (empty($view->result) && empty($view->exposed_input)) {
$view->exposed_widgets = NULL;
}
}