From 065346b3662e0ead6d4e7e0cffdc4d3aed4b2753 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 2 Aug 2009 11:24:21 +0000 Subject: - Patch #535034 by yched: clean up how fields and instances are prepared for runtime. --- modules/system/system.api.php | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'modules/system/system.api.php') diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 9c5435275..550d43431 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -557,25 +557,6 @@ function hook_link($type, $object, $build_mode) { return $links; } -/** - * Perform alterations before links on a comment are rendered. One popular use of - * this hook is to modify/remove links from other modules. If you want to add a link - * to the links section of a node, use hook_link instead. - * - * @param $links - * Nested array of links for the node keyed by providing module. - * @param $node - * A node object that contains the links. - */ -function hook_link_alter(array &$links, $node) { - foreach ($links as $module => $link) { - if (strpos($module, 'taxonomy_term') !== FALSE) { - // Link back to the forum and not the taxonomy term page - $links[$module]['href'] = str_replace('taxonomy/term', 'forum', $link['href']); - } - } -} - /** * Perform alterations profile items before they are rendered. You may omit/add/re-sort/re-categorize, etc. * -- cgit v1.2.3