You are here

function Gallery::get_content in Node Gallery 6

File

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

Class

Gallery

Code

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