Commit bb89ff65 authored by frjo's avatar frjo
Browse files

Issue #1290208 by andypost: token_replace is part of core, no need to check for token module.

parent 3b7ddca3
......@@ -61,12 +61,7 @@ function theme_colorbox_image_formatter($variables) {
$caption = $node->title;
break;
case 'custom':
if (module_exists('token')) {
$caption = token_replace($settings['colorbox_caption_custom'], array('node' => $node));
}
else {
$caption = $settings['colorbox_caption_custom'];
}
$caption = token_replace($settings['colorbox_caption_custom'], array('node' => $node));
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