summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpartdigital2015-06-14 23:40:47 (GMT)
committerFredrik Jonsson2015-06-14 23:40:47 (GMT)
commit5c27b83df60fb90a176e54869c554f1a3dd6aa3d (patch)
treec60759852bef5a039f6fa492b54ea46f30012a22
parent0d0dfd5b5ccc44cd4013ab9414da9bfbd0e4ce1a (diff)
Issue #2319483 by partdigital, Sill: Tokens unavailable to Colorbox and [nid] custom gallery not working7.x-2.9
-rw-r--r--views/colorbox_handler_field_colorbox.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/colorbox_handler_field_colorbox.inc b/views/colorbox_handler_field_colorbox.inc
index 7984ee4..205d099 100644
--- a/views/colorbox_handler_field_colorbox.inc
+++ b/views/colorbox_handler_field_colorbox.inc
@@ -162,10 +162,10 @@ If you would like to have the characters %5B and %5D please use the html entity
$tokens = $this->get_render_tokens($this->options['alter']);
$popup = filter_xss_admin($this->options['popup']);
$caption = filter_xss_admin($this->options['caption']);
+ $gallery = filter_xss_admin($this->options['custom_gid']);
$popup = strtr($popup, $tokens);
$caption = strtr($caption, $tokens);
- $gallery = strtr($this->options['custom_gid'] , $tokens);
- $gallery = drupal_html_class($gallery);
+ $gallery = drupal_html_class(strtr($gallery, $tokens));
// Return nothing if popup is empty.
if (empty($popup)) {