summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDYdave2013-02-05 06:16:05 (GMT)
committer DYdave2013-02-05 06:16:05 (GMT)
commit23d36a2845b5d852012894849be55ee817e80fed (patch)
tree0b40b5035feeb934fb9fdb7da52ee15f13bc7927
parent2c53a895a4a904711cef8a4bc9bbd8c13de1f2f9 (diff)
Issue #1907674 by DYdave: Added support to fragment query string for links path wrapped around images.
-rw-r--r--image_link_formatter.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/image_link_formatter.module b/image_link_formatter.module
index a6abe94..b46bc24 100644
--- a/image_link_formatter.module
+++ b/image_link_formatter.module
@@ -120,6 +120,10 @@ function image_link_formatter_field_formatter_view($entity_type, $entity, $field
'path' => $link_values[$delta]['url'],
'options' => array('attributes' => $link_values[$delta]['attributes']),
);
+ // Handle query fragment if there is any.
+ if (isset($link_values[$delta]['query']) && count($link_values[$delta]['query'])>0) {
+ $uri['options']['query'] = $link_values[$delta]['query'];
+ }
}
// If there are more image values than link values unset the link.
else {