diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-05-18 14:58:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-05-18 14:58:57 +0000 |
commit | 1b291a2917a1c18194c54fce8bf0fd895db98019 (patch) | |
tree | a46473123aeb5709f8cc6f07e685fc84df90bf06 /modules/upload/upload.module | |
parent | be7bb9be9bb41c83795fa8d7fa119ce4025f2de0 (diff) | |
download | brdo-1b291a2917a1c18194c54fce8bf0fd895db98019.tar.gz brdo-1b291a2917a1c18194c54fce8bf0fd895db98019.tar.bz2 |
- Patch #18260 by Ber, m3averck et al: allow overriding of links returned by modules
Diffstat (limited to 'modules/upload/upload.module')
-rw-r--r-- | modules/upload/upload.module | 7 |
1 files changed, 6 insertions, 1 deletions
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' + ); } } |