Commit a742d7c0 authored by frjo's avatar frjo
Browse files

#1062228: Fix undefined variable formatters in hook_field_formatter_info.

parent 59f1fa6d
......@@ -344,17 +344,13 @@ function colorbox_link_alter(&$links, $node) {
* Implementation of hook_field_formatter_info().
*/
function colorbox_field_formatter_info() {
if (module_exists('image')) {
$formatters = array(
'colorbox' => array(
'label' => t('Colorbox'),
'field types' => array('image'),
'settings' => array('colorbox_node_style' => '', 'colorbox_image_style' => ''),
),
);
}
return $formatters;
return array(
'colorbox' => array(
'label' => t('Colorbox'),
'field types' => array('image'),
'settings' => array('colorbox_node_style' => '', 'colorbox_image_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