You are here

node_gallery_views_handler_image_navigator.inc in Node Gallery 6.3

Views field handler that displays the image navigator

File

views2inc/node_gallery_views_handler_image_navigator.inc
View source
<?php

/**
 * @file
 * Views field handler that displays the image navigator
 */

/**
 * Field handler to display the image navigator in a view
 */
class node_gallery_views_handler_image_navigator extends views_handler_field {
  function query() {
    $this
      ->ensure_my_table();
  }
  function render($values) {
    $node = node_load($values->nid);
    if ($node->gid) {
      return theme('node_gallery_image_navigator', node_gallery_get_image_navigator($node->gid, $node->nid), $node);
    }
  }

}

Classes

Namesort descending Description
node_gallery_views_handler_image_navigator Field handler to display the image navigator in a view