image_toolkit_validate

  1. drupal
    1. 4.7
Versions
4.7 image_toolkit_validate($formelement, $fieldname)

Validates toolkit selection.

Code

includes/image.inc, line 49

<?php
function image_toolkit_validate($formelement, $fieldname) {
  if ($formelement['#value'] == 'gd' && image_gd_check_settings() == false) {
    form_set_error('image_toolkit', t("The built-in GD image toolkit requires that the GD module for PHP be installed and configured properly. For more information see %url.", array('%url' => '<a href="http://php.net/image">http://php.net/image</a>')));
  }
}
?>