You are here

static function gallery_gateway::get_images in Node Gallery 6

1 call to gallery_gateway::get_images()
_node_gallery_load in ./node_gallery.module
Implementation of hook_nodeapi(op='load').

File

./node_gallery.model.inc, line 136
Node gallery module.

Class

gallery_gateway

Code

static function get_images($gid) {
  $result = db_query("SELECT nid FROM {ng_images} WHERE gid = %d", $gid);
  while ($r = db_fetch_array($result)) {
    $nids[] = $r['nid'];
  }
  if (!empty($nids)) {
    return ImageGateway::find_details($nids);
  }
}