function lc_AddReport in Link checker 5
1 call to lc_AddReport()
- linkchecker_cron in ./linkchecker.module
- Implementation of hook_cron()
Rebuild the table if necessary.
File
- ./linkchecker.module, line 372
- This module periodically check html links referenced by drupal nodes
Developed and maintained by Marek Tichy, marek@ecn.cz
Code
function lc_AddReport($task, $report) {
db_query("DELETE FROM `linkchecker_results` WHERE `taskid` = " . $task["taskid"] . ";");
foreach ($report as $r) {
db_query("INSERT INTO `linkchecker_results` VALUES ('" . $task["taskid"] . "','" . $r["url"] . "','" . $r["response"] . "');");
}
db_query("UPDATE `linkchecker_tasks` SET `status` = 999, `update` = NOW() WHERE taskid = " . $task["taskid"] . ";");
}