WSDOT / wsdot-website

Codebase for WSDOT's public Drupal 7 website hosted on Acquia.
0 stars 4 forks source link

Hide "There is currently no content classified with this term" message #474

Closed waynedyck closed 5 years ago

waynedyck commented 5 years ago

For Drupal 7 it appears the solution is to add the following if statement to our theme's _preprocess_page function in the template.php file

function THEME_preprocess_page(&$vars) {
  if(isset($vars['page']['content']['system_main']['no_content'])) {
    unset($vars['page']['content']['system_main']['no_content']);
  }
}

I will test it locally and confirm it works as intended.