You are here

function image_gd_check_settings in Drupal 5

Same name and namespace in other branches
  1. 4 includes/image.inc \image_gd_check_settings()
  2. 6 includes/image.gd.inc \image_gd_check_settings()
  3. 7 modules/system/image.gd.inc \image_gd_check_settings()

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

Return value

boolean

2 calls to image_gd_check_settings()
image_gd_settings in includes/image.inc
Retrieve settings for the GD2 toolkit.
image_get_toolkit in includes/image.inc
Retrieve the name of the currently used toolkit.

File

includes/image.inc, line 209

Code

function image_gd_check_settings() {
  if ($check = get_extension_funcs('gd')) {
    if (in_array('imagegd2', $check)) {

      // GD2 support is available.
      return TRUE;
    }
  }
  return FALSE;
}