diff options
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r-- | modules/taxonomy.module | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 6d6b7fb47..0662c0fca 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -373,7 +373,7 @@ function taxonomy_overview() { $node_type = node_invoke($type, 'node_name'); $types[] = $node_type ? $node_type : $type; } - $rows[] = array('<strong>'.check_plain($vocabulary->name).'</strong>', implode(', ', $types), l(t('edit vocabulary'), "admin/taxonomy/edit/vocabulary/$vocabulary->vid"), l(t('add term'), "admin/taxonomy/add/term/$vocabulary->vid"), l(t('view terms'), "admin/taxonomy/$vocabulary->vid")); + $rows[] = array('<strong>'. check_plain($vocabulary->name) .'</strong>', implode(', ', $types), l(t('edit vocabulary'), "admin/taxonomy/edit/vocabulary/$vocabulary->vid"), l(t('add term'), "admin/taxonomy/add/term/$vocabulary->vid"), l(t('view terms'), "admin/taxonomy/$vocabulary->vid")); // Show terms if non-free. if (!$vocabulary->tags) { @@ -1082,7 +1082,10 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') { $breadcrumbs = array_reverse($breadcrumbs); menu_set_location($breadcrumbs); - drupal_set_html_head('<link rel="alternate" type="application/rss+xml" title="RSS - '. $title .'" href="'. url('taxonomy/term/'. $rss_tids .'/'. $depth .'/feed') .'" />'); + drupal_add_link(array('rel' => 'alternate', + 'type' => 'application/rss+xml', + 'title' => 'RSS - '. $title, + 'href' => url('taxonomy/term/'. $rss_tids .'/'. $depth .'/feed'))); $output = taxonomy_render_nodes(taxonomy_select_nodes($tids, $operator, $depth, TRUE)); $output .= theme('xml_icon', url("taxonomy/term/$rss_tids/$depth/feed")); |