Commit 149cb18c authored by frjo's avatar frjo
Browse files

Remove some leftovers from the old image module integration.

parent 2633ebcd
......@@ -390,20 +390,6 @@ function colorbox_form_alter(&$form, &$form_state, $form_id) {
}
}
/**
* Implements hook_link_alter().
*/
function colorbox_link_alter(&$links, $node) {
if ($node->type == 'image' && is_array($node->images) && variable_get('colorbox_auto_image_nodes', 0)) {
// Add a colorbox class to the image link sizes on the image node.
foreach ($node->images as $size => $path) {
$links['image_size_' . $size]['attributes']['class'] = "image image-{$size} colorbox";
$links['image_size_' . $size]['href'] = $path;
unset($links['image_size_' . $size]['query']);
}
}
}
/**
* Implements hook_field_formatter_info().
*/
......
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