diff options
Diffstat (limited to 'modules/upload.module')
-rw-r--r-- | modules/upload.module | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/upload.module b/modules/upload.module index c575d1d79..ca01ac700 100644 --- a/modules/upload.module +++ b/modules/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' + ); } } |