You are here

function lc_RemoveTask in Link checker 5

2 calls to lc_RemoveTask()
lc_PushTask in ./linkchecker.module
linkchecker_cron in ./linkchecker.module
Implementation of hook_cron() Rebuild the table if necessary.

File

./linkchecker.module, line 342
This module periodically check html links referenced by drupal nodes Developed and maintained by Marek Tichy, marek@ecn.cz

Code

function lc_RemoveTask($task) {
  $tid = $task["taskid"];
  d_("Removing task {$tid}");
  if (is_numeric($tid)) {
    db_query("DELETE FROM `linkchecker_tasks` WHERE `taskid` = {$tid};");
    db_query("DELETE FROM `linkchecker_results` WHERE `taskid` = {$tid};");
  }
  else {

    // Error: invalid task id
  }
}