You are here

function PrivatemsgAPITestCase::getMessageFromSubject in Privatemsg 6

Same name and namespace in other branches
  1. 6.2 privatemsg.test \PrivatemsgAPITestCase::getMessageFromSubject()
  2. 7.2 privatemsg.test \PrivatemsgAPITestCase::getMessageFromSubject()
  3. 7 privatemsg.test \PrivatemsgAPITestCase::getMessageFromSubject()
2 calls to PrivatemsgAPITestCase::getMessageFromSubject()
PrivatemsgAPITestCase::testPrivatemsgApiNewThread in tests/privatemsgapi.test
PrivatemsgAPITestCase::testPrivatemsgApiReply in tests/privatemsgapi.test

File

tests/privatemsgapi.test, line 82
Privatemsg API tests

Class

PrivatemsgAPITestCase
@file Privatemsg API tests

Code

function getMessageFromSubject($subject) {
  $result = db_query("SELECT * FROM {pm_message} WHERE subject = '%s'", $subject);
  return db_fetch_array($result);
}