function imagecache_external_allowed_mimetypes in Imagecache External 7.2
Same name and namespace in other branches
- 8 imagecache_external.module \imagecache_external_allowed_mimetypes()
Helper function that returns allowed mimetypes for external caching.
Return value
array The allowed mimetypes.
2 calls to imagecache_external_allowed_mimetypes()
- imagecache_external_fetch in ./
imagecache_external.module - Api function to fetch a url.
- imagecache_external_file_download in ./
imagecache_external.module - Implements hook_file_download().
1 string reference to 'imagecache_external_allowed_mimetypes'
- imagecache_external_uninstall in ./
imagecache_external.install - Implements hook_uninstall().
File
- ./
imagecache_external.module, line 543 - Allows the usage of Image Styles on external images.
Code
function imagecache_external_allowed_mimetypes() {
return variable_get('imagecache_external_allowed_mimetypes', array(
'image/jpg',
'image/jpg;charset=utf-8',
'image/jpeg',
'image/jpeg;charset=utf-8',
'image/png',
'image/png;charset=utf-8',
'image/gif',
'image/gif;charset=utf-8',
'application/octet-stream',
'application/octet-stream;charset=utf-8',
'binary/octet-stream',
));
}