diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-03-26 00:35:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-03-26 00:35:59 +0000 |
commit | eb6b848de609469d313a1d48b6b7f8a559c9e289 (patch) | |
tree | 034aa0a102aeb6f4c4f4eaf78d5c2062257350cb /modules/taxonomy/taxonomy.module | |
parent | 2e0bb6e939e54c5cc8fe03e583d07b358cffb0c4 (diff) | |
download | brdo-eb6b848de609469d313a1d48b6b7f8a559c9e289.tar.gz brdo-eb6b848de609469d313a1d48b6b7f8a559c9e289.tar.bz2 |
- Patch #110888 by Eaton: unify hook _alter()
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 7 |
1 files changed, 2 insertions, 5 deletions
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']; |