image_gd_check_settings

Versions
4.6 – 7
image_gd_check_settings()

Verify GD2 settings (that the right version is actually installed).

Return value

boolean

▾ 3 functions call image_gd_check_settings()

image_gd_settings in includes/image.inc
Retrieve settings for the GD2 toolkit (not used).
image_get_toolkit in includes/image.inc
Retrieve the name of the currently used toolkit.
image_toolkit_validate in includes/image.inc
Validates toolkit selection.

Code

includes/image.inc, line 204

<?php
function image_gd_check_settings() {
  if ($check = get_extension_funcs('gd')) {
    if (in_array('imagegd2', $check)) {
      // GD2 support is available.
      return true;
    }
  }
  return false;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.