function image_get_toolkit in Drupal 4
Same name and namespace in other branches
- 5 includes/image.inc \image_get_toolkit()
- 6 includes/image.inc \image_get_toolkit()
- 7 includes/image.inc \image_get_toolkit()
Retrieve the name of the currently used toolkit.
Return value
String containing the name of the toolkit.
3 calls to image_get_toolkit()
- image_toolkit_invoke in includes/
image.inc - Invokes the given method using the currently selected toolkit.
- system_view_general in modules/
system.module - user_validate_picture in modules/
user.module
File
- includes/
image.inc, line 29
Code
function image_get_toolkit() {
static $toolkit;
if (!$toolkit) {
$toolkit = variable_get('image_toolkit', 'gd');
$toolkit_file = './includes/image.' . $toolkit . '.inc';
if ($toolkit != 'gd' && file_exists($toolkit_file)) {
include_once $toolkit_file;
}
elseif (!image_gd_check_settings()) {
$toolkit = false;
}
}
return $toolkit;
}