1 taxonomy.api.php hook_taxonomy_term_page_alter(&$build)

Alter the results of taxonomy_term_page().

This hook is called after the node listing for a taxonomy term page has been assembled in a structured array and may be used for altering that listing.

Parameters

array $build: A renderable array representing the taxonomy term content.

See also

taxonomy_term_page()

Related topics

File

core/modules/taxonomy/taxonomy.api.php, line 285
Hooks provided by the Taxonomy module.

Code

function hook_taxonomy_term_page_alter(&$build) {
  // Remove the list of nodes with this term.
  unset($build['nodes']);
  // Remove the pager for the list of nodes.
  unset($build['pager']);
}