function PrivatemsgAPITestCase::getMessageFromSubject in Privatemsg 7.2
Same name and namespace in other branches
- 6.2 privatemsg.test \PrivatemsgAPITestCase::getMessageFromSubject()
- 6 tests/privatemsgapi.test \PrivatemsgAPITestCase::getMessageFromSubject()
- 7 privatemsg.test \PrivatemsgAPITestCase::getMessageFromSubject()
2 calls to PrivatemsgAPITestCase::getMessageFromSubject()
File
- ./
privatemsg.test, line 1392 - Test file for privatemsg.module
Class
- PrivatemsgAPITestCase
- Privatemsg API tests
Code
function getMessageFromSubject($subject) {
return db_query("SELECT * FROM {pm_message} WHERE subject = :subject", array(
':subject' => $subject,
))
->fetchObject();
}