You are here

function image_plugin_argument_validate_image_size::init in Image 7

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

Initialize this plugin with the view and the argument it is linked to.

Overrides views_plugin_argument_validate::init

File

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

Class

image_plugin_argument_validate_image_size
Validation handler for image size.

Code

function init(&$view, &$argument, $id = NULL) {
  parent::init($view, $argument, $id);
  $this->image_sizes = image_get_sizes();
}