image_gd_check_settings

  1. drupal
    1. drupal6 image.gd.inc
    2. drupal7
Versionen
drupal6 – drupal7 image_gd_check_settings()

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

Rückgabewert

A boolean indicating if the GD toolkit is available on this machine.

Verwandte Themen

▾ 3 functions call image_gd_check_settings()

ImageToolkitGdTestCase::testManipulations in modules/simpletest/tests/image.test
Since PHP can't visually check that our images have been manipulated properly, build a list of expected color values for each of the corners and the expected height and widths for the final images.
image_gd_settings in modules/system/image.gd.inc
Retrieve settings for the GD2 toolkit.
system_image_toolkits in modules/system/system.module
Implementation of hook_image_toolkits().

Code

modules/system/image.gd.inc, line 60

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

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