Disable listing of nodes on taxonomy term page

Public

from - http://stackoverflow.com/questions/6498639/drupal-disable-listing-of-nod...

</> CopyGet raw version
php
  1. // to the theme function or template file.
  2. function MY_THEME_preprocess_page(&$variables) {
  3. if(arg(0) == "taxonomy" && arg(1) == "term") {
  4. $variables['page']['content']['system_main']['nodes'] = null;
  5. unset($variables['page']['content']['system_main']['no_content']);
  6. unset($variables['page']['content']['system_main']['pager']);
  7. }
  8. }