You are here

function imagecache_external_module_implements_alter in Imagecache External 7.2

Same name and namespace in other branches
  1. 8 imagecache_external.module \imagecache_external_module_implements_alter()

Implements hook_module_implements_alter().

Because the Image module already checks for the image style paths, and returns and access_denied() for Imagecache External images, we need to override this function and do the check ourselves.

File

./imagecache_external.module, line 436
Allows the usage of Image Styles on external images.

Code

function imagecache_external_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'file_download') {
    unset($implementations['image']);
  }
}