You are here

function _imageapi_optimize_invoke in Image Optimize (or ImageAPI Optimize) 6

Same name and namespace in other branches
  1. 7 imageapi_optimize.module \_imageapi_optimize_invoke()

Helper. Based on imageapi_invoke()

2 calls to _imageapi_optimize_invoke()
imageapi_optimize_image_close in ./imageapi_optimize.module
imageapi_optimize_image_open in ./imageapi_optimize.module
All ImageAPI functions call their base functions

File

./imageapi_optimize.module, line 157
Image optimize functionalities

Code

function _imageapi_optimize_invoke($method, &$image, array $params = array()) {
  $function = variable_get('imageapi_optimize_toolkit', '') . '_image_' . $method;
  if (function_exists($function)) {
    array_unshift($params, $image);
    $params[0] =& $image;
    return call_user_func_array($function, $params);
  }
  return FALSE;
}