From 1b291a2917a1c18194c54fce8bf0fd895db98019 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 18 May 2006 14:58:57 +0000 Subject: - Patch #18260 by Ber, m3averck et al: allow overriding of links returned by modules --- modules/upload/upload.module | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/upload/upload.module') diff --git a/modules/upload/upload.module b/modules/upload/upload.module index c575d1d79..ca01ac700 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -53,7 +53,12 @@ function upload_link($type, $node = 0, $main = 0) { } } if ($num_files) { - $links[] = l(format_plural($num_files, '1 attachment', '%count attachments'), "node/$node->nid", array('title' => t('Read full article to view attachments.')), NULL, 'attachments'); + $links['upload_attachments'] = array( + '#title' => format_plural($num_files, '1 attachment', '%count attachments'), + '#href' => "node/$node->nid", + '#attributes' => array('title' => t('Read full article to view attachments.')), + '#fragment' => 'attachments' + ); } } -- cgit v1.2.3