function image_handler_field_image_node_image::render_html in Image 6
Same name and namespace in other branches
- 7 views/image_handler_field_image_node_image.inc \image_handler_field_image_node_image::render_html()
Return image html, using image_load() and image_display().
We rely on Image module to handle getting the data because although we can use the derivative option to restrict the join, we do not have the agility to fall back to the original when the requested derivative is larger than the image and is absent from the system.
1 call to image_handler_field_image_node_image::render_html()
- image_handler_field_image_node_image::render in views/
image_handler_field_image_node_image.inc - Return field html if the result is an image node.
File
- views/
image_handler_field_image_node_image.inc, line 103 - Views handler for image field.
Class
- image_handler_field_image_node_image
- Field handler to provide an image tag.
Code
function render_html($values) {
$derivative = $this->options['image_derivative'];
$node = $this
->build_image_display_node($values);
// image_load() will load the files for all derivatives. Derivatives larger
// than the original fall back to the original. Stale derivatives will be
// regenerated.
image_load($node);
return image_display($node, $derivative);
}