image_get_available_toolkits

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 image_get_available_toolkits()

Return a list of available toolkits.

Rückgabewert

An array with the toolkit names as keys and the descriptions as values.

Verwandte Themen

▾ 3 functions call image_get_available_toolkits()

ImageToolkitTestCase::testGetAvailableToolkits in modules/simpletest/tests/image.test
Check that hook_image_toolkits() is called and only available toolkits are returned.
image_get_toolkit in includes/image.inc
Retrieve the name of the currently used toolkit.
system_image_toolkit_settings in modules/system/system.admin.inc
Form builder; Configure site image toolkit usage.

Code

includes/image.inc, line 41

<?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

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen