You are here

function node_gallery_json_get_sorted_images in Node Gallery 6.3

Page callback for the sort image page, when it retrieves image nids ordered by a specified field.

Parameters

object $gallery The node object of a gallery.:

string $op The entry to sort after; one of title, created, changed, filepath, weight or current.:

boolean $reverse If the order should be reversed.:

Return value

string JSON encoded array of image nids.

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

File

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

Code

function node_gallery_json_get_sorted_images($gallery, $op = '', $reverse = FALSE) {
  return drupal_json(node_gallery_get_image_nids_sorted_by($gallery, $op, $reverse));
}