You are here

function image_imageinfo_cache_settings in Imageinfo Cache 7.3

Retrieve settings for the original toolkit.

Return value

mixed FALSE on failure; form array on success.

File

./imageinfo_cache.toolkit.inc, line 283
Imageinfo Cache module. Pseudo image toolkit functions.

Code

function image_imageinfo_cache_settings() {
  $toolkit = variable_get('image_toolkit_original', 'gd');
  $function = 'image_' . variable_get('image_toolkit_original', 'gd') . '_settings';
  if (function_exists($function)) {
    return $function();
  }
  watchdog('image', 'The selected image handling toolkit %toolkit can not correctly process %function.', array(
    '%toolkit' => $toolkit,
    '%function' => $function,
  ), WATCHDOG_ERROR);
  return FALSE;
}