You are here

function node_gallery_browse_images in Node Gallery 6.3

1 string reference to 'node_gallery_browse_images'
node_gallery_menu in ./node_gallery.module
Implements hook_menu().

File

./node_gallery.pages.inc, line 92
Handles displaying of Node gallery pages.

Code

function node_gallery_browse_images($gallery) {
  $first_image = node_gallery_get_first_image($gallery->nid);
  $path = 'node/';
  if (is_numeric($first_image)) {
    $path .= $first_image;

    // Set our pretty path
    $path = drupal_get_path_alias($path);
  }
  drupal_goto($path);
}