| 5 image.inc | image_get_toolkit() |
| 6 image.inc | image_get_toolkit() |
| 7 image.inc | image_get_toolkit() |
| 8 image.inc | image_get_toolkit() |
Retrieve the name of the currently used toolkit.
Return value
String containing the name of the selected toolkit, or FALSE on error.
Related topics
3 calls to image_get_toolkit()
File
- includes/
image.inc, line 60 - API for manipulating images.
Code
function image_get_toolkit() {
static $toolkit;
if (!$toolkit) {
$toolkit = variable_get('image_toolkit', 'gd');
$toolkit_file = './includes/image.' . $toolkit . '.inc';
if (isset($toolkit) && file_exists($toolkit_file)) {
include_once $toolkit_file;
}
elseif (!image_gd_check_settings()) {
$toolkit = FALSE;
}
}
return $toolkit;
}
Login or register to post comments