| Versionen | |
|---|---|
| drupal7 | hook_image_toolkits() |
Define image toolkits provided by this module.
The file which includes each toolkit's functions must be declared as part of the files array in the module .info file so that the registry will find and parse it.
The toolkit's functions must be named image_toolkitname_operation(). where the operation may be:
see system_image_toolkits()
An array with the toolkit name as keys and sub-arrays with these keys:
modules/
<?php
function hook_image_toolkits() {
return array(
'working' => array(
'title' => t('A toolkit that works.'),
'available' => TRUE,
),
'broken' => array(
'title' => t('A toolkit that is "broken" and will not be listed.'),
'available' => FALSE,
),
);
}
?>
Kommentare
Kommentar hinzufügen