class image_handler_argument_image_size in Image 6
Same name and namespace in other branches
- 7 views/image_handler_argument_image_size.inc \image_handler_argument_image_size
Argument handler for image size.
Converts given image size argument to a human-readable name.
Hierarchy
- class \image_handler_argument_image_size extends \views_handler_argument_string
Expanded class hierarchy of image_handler_argument_image_size
1 string reference to 'image_handler_argument_image_size'
- image_views_data in views/
image.views.inc - Implementation of hook_views_data().
File
- views/
image_handler_argument_image_size.inc, line 13 - Views argument handler for image size argument.
View source
class image_handler_argument_image_size extends views_handler_argument_string {
/**
* Get the human-readable label for the image size.
*/
function title() {
$image_sizes = image_get_sizes();
return check_plain($image_sizes[$this->argument]['label']);
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
image_handler_argument_image_size:: |
function | Get the human-readable label for the image size. |