function image_gallery_handler_field_gallery_count::render in Image 6
Same name and namespace in other branches
- 7 contrib/image_gallery/views/image_gallery_handler_field_gallery_count.inc \image_gallery_handler_field_gallery_count::render()
Return field html.
File
- contrib/
image_gallery/ views/ image_gallery_handler_field_gallery_count.inc, line 21
Class
- image_gallery_handler_field_gallery_count
- Views handler for Image gallery count field. This counts all the nodes in the gallery, including descendant galleries, using taxonomy.module's taxonomy_term_count_nodes.
Code
function render($values) {
$count = taxonomy_term_count_nodes($values->tid, 'image');
$output = theme('image_gallery_count', $count);
return $this
->render_link($output, $values);
}