--- modules/comment/comment.module 2008-08-30 15:51:54.530347600 +0400 +++ modules/comment/comment.module 2008-08-30 17:24:20.155347600 +0400 @@ -1031,18 +1031,24 @@ } } } + + $links = module_invoke_all('link', 'comment', $comment, 0); + foreach (module_implements('link_alter') as $module) { + $function = $module .'_link_alter'; + $function($comment, $links); + } if ($mode == COMMENT_MODE_FLAT_COLLAPSED) { - $output .= theme('comment_flat_collapsed', $comment); + $output .= theme('comment_flat_collapsed', $comment, $links); } else if ($mode == COMMENT_MODE_FLAT_EXPANDED) { - $output .= theme('comment_flat_expanded', $comment); + $output .= theme('comment_flat_expanded', $comment, $links); } else if ($mode == COMMENT_MODE_THREADED_COLLAPSED) { - $output .= theme('comment_thread_collapsed', $comment); + $output .= theme('comment_thread_collapsed', $comment, $links); } else if ($mode == COMMENT_MODE_THREADED_EXPANDED) { - $output .= theme('comment_thread_expanded', $comment); + $output .= theme('comment_thread_expanded', $comment, $links); } } for ($i = 0; $i < $divs; $i++) { @@ -1788,22 +1794,22 @@ return $output; } -function theme_comment_flat_collapsed($comment) { - return theme('comment_view', $comment, '', 0); +function theme_comment_flat_collapsed($comment, $links) { + return theme('comment_view', $comment, $links, 0); } -function theme_comment_flat_expanded($comment) { - return theme('comment_view', $comment, module_invoke_all('link', 'comment', $comment, 0)); +function theme_comment_flat_expanded($comment, $links) { + return theme('comment_view', $comment, $links); } -function theme_comment_thread_collapsed($comment) { - $output .= theme('comment_view', $comment, '', 0); +function theme_comment_thread_collapsed($comment, $links) { + $output .= theme('comment_view', $comment, $links, 0); return $output; } -function theme_comment_thread_expanded($comment) { +function theme_comment_thread_expanded($comment, $links) { $output = ''; - $output .= theme('comment_view', $comment, module_invoke_all('link', 'comment', $comment, 0)); + $output .= theme('comment_view', $comment, $links); return $output; }