function image_gd_check_settings

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

Return value

A Boolean indicating whether the correct version of the GD toolkit is available on this machine.

See also

image_gd_settings()

system_image_toolkits()

Related topics

3 calls to image_gd_check_settings()
image_gd_settings in drupal/core/modules/system/image.gd.inc
Image toolkit callback: Returns GD-specific image toolkit settings.
system_image_toolkits in drupal/core/modules/system/system.module
Implements hook_image_toolkits().
ToolkitGdTest::checkRequirements in drupal/core/modules/system/lib/Drupal/system/Tests/Image/ToolkitGdTest.php
Checks the matching requirements for Test.
2 string references to 'image_gd_check_settings'
system_image_toolkits in drupal/core/modules/system/system.module
Implements hook_image_toolkits().
ToolkitGdTest::checkRequirements in drupal/core/modules/system/lib/Drupal/system/Tests/Image/ToolkitGdTest.php
Checks the matching requirements for Test.

File

drupal/core/modules/system/image.gd.inc, line 62
GD2 toolkit for image manipulation within Drupal.

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;
}