image_get_available_toolkits
function image_get_available_toolkits
image_get_available_toolkits()
Gets a list of available toolkits.
Return value
An array with the toolkit names as keys and the descriptions as values.
Related topics
File
- includes/image.inc, line 42
- API for manipulating images.
Code
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!image.inc/function/image_get_available_toolkits/7.x