image_get_toolkit

Versions
5 – 7
image_get_toolkit()

Retrieve the name of the currently used toolkit.

Return value

String containing the name of the selected toolkit, or FALSE on error.

Related topics

▾ 5 functions call image_get_toolkit()

filefield_validate_image_resolution in contrib-6/filefield/filefield.module
An #upload_validators callback. Check an image resolution.
filefield_validate_image_resolution_help in contrib-6/filefield/filefield.module
Automatic help text appended to fields that have image resolution validation.
file_validate_image_resolution in drupal-6/includes/file.inc
If the file is an image verify that its dimensions are within the specified maximum and minimum dimensions. Non-image files will be ignored.
image_toolkit_invoke in drupal-6/includes/image.inc
Invokes the given method using the currently selected toolkit.
system_image_toolkit_settings in drupal-6/modules/system/system.admin.inc
Form builder; Configure site image toolkit usage.

Code

drupal-6/includes/image.inc, line 60

<?php
function image_get_toolkit() {
  static $toolkit;

  if (!$toolkit) {
    $toolkit = variable_get('image_toolkit', 'gd');
    $toolkit_file = './includes/image.'. $toolkit .'.inc';
    if (isset($toolkit) && file_exists($toolkit_file)) {
      include_once $toolkit_file;
    }
    elseif (!image_gd_check_settings()) {
      $toolkit = FALSE;
    }
  }

  return $toolkit;
}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options