Commit 6eb1578b authored by frjo's avatar frjo
Browse files

Remove some leftovers from the old image module integration.

parent b983313c
......@@ -84,3 +84,13 @@ function colorbox_update_7200() {
return $ret;
}
/**
* Delete the unused colorbox_auto_image_nodes variabel.
*/
function colorbox_update_7201() {
$ret = array();
variable_del('colorbox_auto_image_nodes');
return $ret;
}
......@@ -289,20 +289,6 @@ function colorbox_get_path() {
return $library_path;
}
/**
* 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