image_sizes = image_get_sizes(); } function render($values) { $image_size = $values->{$this->field_alias}; if (!empty($image_size) && isset($this->image_sizes[$image_size])) { return check_plain($this->image_sizes[$image_size]['label']); } return ''; } }