| Versionen | |
|---|---|
| drupal6 – drupal7 | image_get_available_toolkits() |
Return a list of available toolkits.
An array with the toolkit names as keys and the descriptions as values.
includes/
<?php
function image_get_available_toolkits() {
// hook_image_toolkits returns an array of toolkit names.
$toolkits = module_invoke_all('image_toolkits');
$output = array();
foreach ($toolkits as $name => $info) {
// Only allow modules that aren't marked as unavailable.
if ($info['available']) {
$output[$name] = $info['title'];
}
}
return $output;
}
?>
Kommentare
Kommentar hinzufügen