Calling all Drupal developers!
Help us get this on the first page of Digg. DIGG NOW!
Help us get this on the first page of Digg. DIGG NOW!
trackback_cron()
contributions/trackback/trackback.module, line 393
<?php
function trackback_cron() {
// query for all nodes where
$result = db_query('SELECT t.nid, n.status FROM {trackback_node} t INNER JOIN {node} n ON t.nid = n.nid WHERE t.awaiting_cron = 1');
while ($node = db_fetch_object($result)) {
// First things first, let's unset the 'awaiting_cron' bit in the {trackback_node} table.
db_query('UPDATE {trackback_node} SET awaiting_cron = 0 WHERE nid = %d', $node->nid);
if ($node->status) {
module_load_include('inc', 'trackback', 'trackback.ping');
$node = node_load($node->nid);
_trackback_ping($node, trackback_urls_via_nodebody($node));
}
}
}
?>