You are here

function _image_is_required_size in Image 7

Same name and namespace in other branches
  1. 5.2 image.module \_image_is_required_size()
  2. 5 image.module \_image_is_required_size()
  3. 6 image.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_legacy.module, line 145

Code

function _image_is_required_size($size) {
  return in_array($size, array(
    IMAGE_THUMBNAIL,
    IMAGE_PREVIEW,
    IMAGE_ORIGINAL,
  ));
}