function node_gallery_handler_field_fid::render in Node Gallery 6.2
File
- includes/
node_gallery_handler_field_fid.inc, line 77 - node_gallery_handler_field_fid.inc
Class
Code
function render($value) {
global $user;
$config = node_gallery_get_config($this->options['node_gallery_setting']);
// if nga is there, and our gallery is password protected, show our protected image
if (module_exists('node_gallery_access')) {
if ($value->access_type == NODE_GALLERY_ACCESS_TYPE_PASSWORD) {
if (!node_gallery_access_check_access($value, 'image')) {
$value->filepath = node_gallery_access_default_pass_image();
}
}
}
return theme('gallery_image_thumbnail', $value, $config, $this->options['view_mode']);
}