function image_handler_field_image_size::init in Image 7
Same name and namespace in other branches
- 6 views/image_handler_field_image_size.inc \image_handler_field_image_size::init()
Init the handler with necessary data.
Parameters
view $view: The $view object this handler is attached to.
array $options: The item from the database; the actual contents of this will vary based upon the type of handler.
Overrides views_handler_field::init
File
- views/
image_handler_field_image_size.inc, line 17 - Views handler for image size field.
Class
- image_handler_field_image_size
- Render the human-readable name of a given image size.
Code
function init(&$view, $options) {
parent::init($view, $options);
$this->image_sizes = image_get_sizes();
}