function _image_is_required_size in Image 6
Same name and namespace in other branches
- 5.2 image.module \_image_is_required_size()
- 5 image.module \_image_is_required_size()
- 7 image_legacy.module \_image_is_required_size()
Is a given size a built-in, required size?
Parameters
$size: One of the keys in the array returned by image_get_sizes().
Return value
boolean
1 call to _image_is_required_size()
- image_admin_settings in ./
image.admin.inc - Menu callback; Form builder function for image settings.
File
- ./
image.module, line 990
Code
function _image_is_required_size($size) {
return in_array($size, array(
IMAGE_THUMBNAIL,
IMAGE_PREVIEW,
IMAGE_ORIGINAL,
));
}