file_validate_is_image

function file_validate_is_image

file_validate_is_image(stdClass $file)

Checks that the file is recognized by image_get_info() as an image.

Parameters

$file: A Drupal file object.

Return value

An array. If the file is not an image, it will contain an error message.

See also

hook_file_validate()

Related topics