You are here

function _image_is_required_size in Image 5

Same name and namespace in other branches
  1. 5.2 image.module \_image_is_required_size()
  2. 6 image.module \_image_is_required_size()
  3. 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.module
Admin settings callback.

File

./image.module, line 1027

Code

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