diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-09-26 18:22:34 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-09-26 18:22:34 +0000 |
commit | 9a0cbf62e195f2178bc503fb085e1ed4d37471ad (patch) | |
tree | 7f31f5f4af12fff4fa14a2844436901c6e2410e1 /modules | |
parent | fbde117dd6dd4a8830c1b17b6d10c338cd39e3bd (diff) | |
download | brdo-9a0cbf62e195f2178bc503fb085e1ed4d37471ad.tar.gz brdo-9a0cbf62e195f2178bc503fb085e1ed4d37471ad.tar.bz2 |
- Patch #135926 by mooffie: hook_link is called by the wrong parameters. Fixed disconnect between node_view() and hook_link().
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node/node.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 40cf676aa..5e4d6d5ef 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -908,7 +908,7 @@ function node_delete($nid) { * @param $node * A node array or node object. * @param $teaser - * Whether to display the teaser only, as on the main page. + * Whether to display the teaser only or the full form. * @param $page * Whether the node is being displayed by itself as a page. * @param $links @@ -923,7 +923,7 @@ function node_view($node, $teaser = FALSE, $page = FALSE, $links = TRUE) { $node = node_build_content($node, $teaser, $page); if ($links) { - $node->links = module_invoke_all('link', 'node', $node, !$page); + $node->links = module_invoke_all('link', 'node', $node, $teaser); drupal_alter('link', $node->links, $node); } @@ -1638,7 +1638,7 @@ function node_update_index() { $node->build_mode = NODE_BUILD_SEARCH_INDEX; $node = node_build_content($node, FALSE, FALSE); $node->body = drupal_render($node->content); - + // Allow modules to modify the fully-built node. node_invoke_nodeapi($node, 'alter'); |