You are here

function node_gallery_get_gallery_content in Node Gallery 6.2

1 call to node_gallery_get_gallery_content()
_node_gallery_image_view in ./node_gallery.module

File

./node_gallery.inc, line 201
Node gallery models

Code

function node_gallery_get_gallery_content($gid, $teaser = 0) {
  $node = db_fetch_object(db_query("SELECT teaser, body, format FROM {node_revisions} WHERE nid = %d", $gid));
  $node->body = isset($node->body) ? str_replace('<!--break-->', '', $node->body) : '';
  $node = node_prepare($node, $teaser);
  return $node->content['body']['#value'];
}