image_toolkit_invoke
includes/image.inc, строка 53
- Версии
- 5 – 6
image_toolkit_invoke($method, $params = array())
Invokes the given method using the currently selected toolkit.
Параметры
$method
A string containing the method to invoke.
$params
An optional array of parameters to pass to the toolkit method.
Возвращаемое значение
Mixed values (typically Boolean for successful operation).
Код
<?php
function image_toolkit_invoke($method, $params = array()) {
if ($toolkit = image_get_toolkit()) {
$function = 'image_'. $toolkit .'_'. $method;
if (function_exists($function)) {
return call_user_func_array($function, $params);
}
else {
watchdog('php', t("The selected image handling toolkit %toolkit can not correctly process %function.", array('%toolkit' => $toolkit, '%function' => $function)), WATCHDOG_ERROR);
return FALSE;
}
}
else {
if ($method == 'settings') {
return image_gd_settings();
}
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии