You are here

function TokenCommentTestCase::loadComment in Token 6

1 call to TokenCommentTestCase::loadComment()
TokenCommentTestCase::createComment in ./token.test

File

./token.test, line 357
Tests for the token module.

Class

TokenCommentTestCase

Code

function loadComment($cid) {
  return db_fetch_object(db_query('SELECT c.cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.signature, u.signature_format, u.picture, u.data, c.status FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.cid = %d', $cid));
}