summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoseph.olstad2016-06-29 14:19:50 (GMT)
committerjoseph.olstad2016-06-29 14:19:50 (GMT)
commit62f40f814a48d02abe4d51fc7943f62fc4e664e1 (patch)
tree3e998dee6a9970413b79cac29e87bb54dbeaff1c
parent8cf7fa11a8c2e158774f46465e3817998b1cfd3b (diff)
#1394316 add force download functionality7.x-2.5
-rw-r--r--lightbox2.formatter.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/lightbox2.formatter.inc b/lightbox2.formatter.inc
index 9758a34..3996f84 100644
--- a/lightbox2.formatter.inc
+++ b/lightbox2.formatter.inc
@@ -91,7 +91,11 @@ function theme_lightbox2_image($variables) {
// Download Link
if (user_access('download original image')) {
- $rel .= '<p><a href="' . file_create_url($item['uri']) . '">' . t(variable_get('lightbox2_download_link_text', 'Download Original')) . '</a></p>';
+ $url_download = file_create_url($item['uri']);
+ $download_original_text = t(variable_get('lightbox2_download_link_text', 'Download Original'));
+ $options_download['attributes']['title'] = $download_original_text;
+ $options_download['attributes']['download'] = '';
+ $rel .= '<p>' . l($download_original_text, $url_download, $options_download) . '</p>';
}
// Title End