Commit 73f5b6cb authored by frjo's avatar frjo
Browse files

Issue #1412614: Fix to the token_replace function by aasarava so the clear...

Issue #1412614: Fix to the token_replace function by aasarava so the clear attribute is set correctly.
parent 732c2b6e
......@@ -64,11 +64,7 @@ function theme_colorbox_image_formatter($variables) {
$caption = $entity_title;
break;
case 'custom':
$caption = token_replace($settings['colorbox_caption_custom'], array(
$entity_type => $entity,
'file' => (object) $item,
'clear' => TRUE,
));
$caption = token_replace($settings['colorbox_caption_custom'], array($entity_type => $entity, 'file' => (object) $item), array('clear' => TRUE));
break;
default:
$caption = '';
......
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