function _tinypng_fallback in TinyPNG 7
Wrapper for image toolkit functions.
38 calls to _tinypng_fallback()
- image_tinypng_adjustlevels in include/
imagecache_actions.inc - Wrapper for default image_TOOLKIT_adjustlevels().
- image_tinypng_auto_orient in include/
imagecache_actions.inc - Wrapper for default image_TOOLKIT_auto_orient().
- image_tinypng_brightness in include/
imagecache_actions.inc - Wrapper for default image_TOOLKIT_brightness().
- image_tinypng_coloroverlay in include/
imagecache_actions.inc - Wrapper for default image_TOOLKIT_coloroverlay().
- image_tinypng_colorshift in include/
imagecache_actions.inc - Wrapper for default image_TOOLKIT_colorshift().
File
- ./
tinypng.module, line 130 - Provides TinyPNG integration.
Code
function _tinypng_fallback($method) {
$fallback = variable_get('tinypng_fallback_toolkit', 'gd');
$args = func_get_args();
$method = array_shift($args);
$function = 'image_' . $fallback . '_' . $method;
if (is_callable($function)) {
return call_user_func_array($function, $args);
}
return FALSE;
}