Issue #1067120 follow-up by David_Rothstein, Berdir: Docs fixes for taxonomy.api.php.

8.0.x
webchick 2012-12-26 18:38:36 -08:00
parent 864fb0a04f
commit c564e0f7fb
2 changed files with 3 additions and 6 deletions

View File

@ -227,9 +227,9 @@ function hook_taxonomy_term_delete(Drupal\taxonomy\Term $term) {
/**
* Act on a taxonomy term that is being assembled before rendering.
*
* The module may add elements to $term->content prior to rendering. This hook
* will be called after hook_view(). The structure of $term->content is a
* renderable array as expected by drupal_render().
* The module may add elements to $term->content prior to rendering. The
* structure of $term->content is a renderable array as expected by
* drupal_render().
*
* @param $term
* The term that is being assembled for rendering.

View File

@ -35,9 +35,6 @@ function taxonomy_term_page(Term $term) {
drupal_set_breadcrumb($breadcrumb);
drupal_add_feed('taxonomy/term/' . $term->tid . '/feed', 'RSS - ' . $term->label());
// If there is a menu link to this term, the link becomes the last part
// of the active trail, and the link name becomes the page title.
// Thus, we must explicitly set the page title to be the node title.
$uri = $term->uri();
// Set the term path as the canonical URL to prevent duplicate content.