Commit 400bfd85 authored by frjo's avatar frjo
Browse files

Issue #1882386 by sgriffin: Patch by frjo to handle media module not setting...

Issue #1882386 by sgriffin: Patch by frjo to handle media module not setting alt and title on image items.
parent 15f5dbcd
......@@ -25,8 +25,8 @@ function theme_colorbox_image_formatter($variables) {
$image = array(
'path' => $item['uri'],
'alt' => $item['alt'],
'title' => $item['title'],
'alt' => isset($item['alt']) ? $item['alt'] : '',
'title' => isset($item['title']) ? $item['title'] : '',
'style_name' => $settings['colorbox_node_style'],
);
......
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