You are here

function devel_get_comments in Devel 5

1 call to devel_get_comments()
devel_generate_content in ./devel_generate.inc

File

./devel_generate.inc, line 406

Code

function devel_get_comments() {
  $comments = array();
  $result = db_query("SELECT nid, cid FROM {comments}");
  while ($comment = db_fetch_object($result)) {
    $comments[$comment->nid][] = $comment->cid;
  }
  return comments;
}