Commit 5c27b83d authored by partdigital's avatar partdigital Committed by frjo

Issue #2319483 by partdigital, Sill: Tokens unavailable to Colorbox and [nid]...

Issue #2319483 by partdigital, Sill: Tokens unavailable to Colorbox and [nid] custom gallery not working
parent 0d0dfd5b
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment