function PrivatemsgAPITestCase::getMessageFromSubject in Privatemsg 6
Same name and namespace in other branches
- 6.2 privatemsg.test \PrivatemsgAPITestCase::getMessageFromSubject()
- 7.2 privatemsg.test \PrivatemsgAPITestCase::getMessageFromSubject()
- 7 privatemsg.test \PrivatemsgAPITestCase::getMessageFromSubject()
2 calls to PrivatemsgAPITestCase::getMessageFromSubject()
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);
}