function _itweak_upload_isimage in iTweak Upload 6.2
Same name and namespace in other branches
- 7.3 itweak_upload.module \_itweak_upload_isimage()
2 calls to _itweak_upload_isimage()
- itweak_upload_itweak_upload_preview in ./
itweak_upload.module - Implementation of hook_itweak_upload_preview().
- itweak_upload_upload_attachments in ./
itweak_upload.module - Implementation of theme_upload_attachments(). Theme the attachments output.
File
- ./
itweak_upload.module, line 115 - iTweakUpload - Tweak attachments display and file upload forms.
Code
function _itweak_upload_isimage($file) {
if (strpos($file->filemime, 'image/') !== 0) {
return FALSE;
}
$image = image_get_info(file_create_path($file->filepath));
return is_array($image) && $image['extension'] != '';
}