You are here

function image_plugin_argument_validate_image_size::validate_argument in Image 6

Same name and namespace in other branches
  1. 7 views/image_plugin_argument_validate_image_size.inc \image_plugin_argument_validate_image_size::validate_argument()

File

views/image_plugin_argument_validate_image_size.inc, line 45
Views validation plugin for image size argument.

Class

image_plugin_argument_validate_image_size
Validation handler for image size.

Code

function validate_argument($argument) {

  // Allow 'original' as well as '_original'. It's really up to the handler to
  // deal with this and change it before it gets here, but seeing as we
  // promise to do this in the UI we should back it up here.
  if ($argument == 'original') {
    $argument = '_original';
  }
  return $this->argument->options['image_size'][$argument];
}