You are here

function _drush_ip_backlog_comments_process_batch_task in IP address manager 7.2

Batch process task: backlog comments.

1 call to _drush_ip_backlog_comments_process_batch_task()
_drush_ip_backlog_comments_process_batch in ./ip.drush.inc
Batch process: backlog comments.

File

./ip.drush.inc, line 114

Code

function _drush_ip_backlog_comments_process_batch_task($item) {
  $success = TRUE;
  if (!ip_posts_load('comment', $item->cid)) {
    try {
      ip_posts_insert('comment', $item->cid, $item->hostname);
    } catch (PDOException $e) {
      $success = FALSE;
    }
  }
  return $success;
}