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/node/node.module | |
parent | 2e0bb6e939e54c5cc8fe03e583d07b358cffb0c4 (diff) | |
download | brdo-eb6b848de609469d313a1d48b6b7f8a559c9e289.tar.gz brdo-eb6b848de609469d313a1d48b6b7f8a559c9e289.tar.bz2 |
- Patch #110888 by Eaton: unify hook _alter()
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 3d57ed162..5e9bce1a6 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -673,11 +673,7 @@ function node_view($node, $teaser = FALSE, $page = FALSE, $links = TRUE) { if ($links) { $node->links = module_invoke_all('link', 'node', $node, !$page); - - foreach (module_implements('link_alter') AS $module) { - $function = $module .'_link_alter'; - $function($node, $node->links); - } + drupal_alter('link', $node->links, $node); } // Set the proper node part, then unset unused $node part so that a bad @@ -2456,7 +2452,7 @@ function node_update_index() { /** * Implementation of hook_form_alter(). */ -function node_form_alter($form_id, &$form) { +function node_form_alter(&$form, $form_id) { // Advanced node search form if ($form_id == 'search_form' && $form['module']['#value'] == 'node' && user_access('use advanced search')) { // Keyword boxes: |