--- image.module 2010-09-23 13:30:54.000000000 +0200 +++ image.module 2010-09-23 13:42:37.000000000 +0200 @@ -8,6 +8,7 @@ define('IMAGE_THUMBNAIL', 'thumbnail'); define('IMAGE_LINK_HIDDEN', 0); define('IMAGE_LINK_SHOWN', 1); define('IMAGE_LINK_NEW', 2); +define('IMAGE_LINK_DIRECT_LINK', 3); /** * Implementation of hook_help(). @@ -231,6 +232,13 @@ function image_link($type, $node, $main 'attributes' => array('target' => '_blank'), ); } + elseif ($size['link'] == IMAGE_LINK_DIRECT_LINK) { + $links['image_size_' . $key] = array( + 'title' => t($size['label']), + 'href' => "{$node->images[$key]}", + 'attributes' => array('target' => '_blank'), + ); + } else { $links['image_size_' . $key] = array( 'title' => t($size['label']),