From eb6b848de609469d313a1d48b6b7f8a559c9e289 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 26 Mar 2007 00:35:59 +0000 Subject: - Patch #110888 by Eaton: unify hook _alter() --- modules/taxonomy/taxonomy.module | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index c05c866f0..bbde8d8d1 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -39,10 +39,7 @@ function taxonomy_link($type, $node = NULL) { } // We call this hook again because some modules and themes call taxonomy_link('taxonomy terms') directly - foreach (module_implements('link_alter') as $module) { - $function = $module .'_link_alter'; - $function($node, $links); - } + drupal_alter('link', $links, $node); return $links; } @@ -654,7 +651,7 @@ function taxonomy_get_vocabularies($type = NULL) { * Implementation of hook_form_alter(). * Generate a form for selecting terms to associate with a node. */ -function taxonomy_form_alter($form_id, &$form) { +function taxonomy_form_alter(&$form, $form_id) { if (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) { $node = $form['#node']; -- cgit v1.2.3