function image_attach_views_handler_field_iid_link_node in Image 5.2
Same name and namespace in other branches
- 5 contrib/image_attach/image_attach.module \image_attach_views_handler_field_iid_link_node()
Views handler for displaying the image in a link to the image node that attaches the image.
File
- contrib/
image_attach/ image_attach.module, line 400 - image_attach.module
Code
function image_attach_views_handler_field_iid_link_node($field_info, $field_data, $value, $data) {
if ($value) {
$image = node_load($value);
return l(image_display($image, $field_data['options']), 'node/' . $data->nid, array(), NULL, NULL, FALSE, TRUE);
}
}