function LinkCheckerLinkExtractionTest::getLinkCheckerLink in Link checker 7
Same name and namespace in other branches
- 6.2 tests/linkchecker_extract_links.test \LinkCheckerLinkExtractionTest::getLinkCheckerLink()
Get linkchecker link by url.
Parameters
string $url: URL of the link to find.
Return value
object The link object.
1 call to LinkCheckerLinkExtractionTest::getLinkCheckerLink()
File
- ./
linkchecker.test, line 379 - Test file for Link checker module.
Class
- LinkCheckerLinkExtractionTest
- @file Test file for Link checker module.
Code
function getLinkCheckerLink($url) {
return db_query('SELECT * FROM {linkchecker_link} WHERE urlhash = :urlhash', array(
':urlhash' => drupal_hash_base64($url),
))
->fetchObject();
}