You are here

function _ip_geoloc_process_access_log_finished in IP Geolocation Views & Maps 7

Callback to finish batch process.

1 string reference to '_ip_geoloc_process_access_log_finished'
ip_geoloc_sync_with_accesslog in ./ip_geoloc.admin.inc
Bring the visitor location database up to date with the system accesslog.

File

./ip_geoloc.admin.inc, line 492
Admin configuration settings for IPGV&M.

Code

function _ip_geoloc_process_access_log_finished($success, $results, $operations, $elapsed) {
  if ($success) {
    drupal_set_message(t('%count new IP geolocation records compiled and stored in %elapsed-time.', array(
      '%count' => count($results),
      '%elapsed-time' => $elapsed,
    )));
  }
  else {
    drupal_set_message(t('An error occurred. Processing of the access log did not complete.'), 'error');
    $message = format_plural(count($results), 'One IP address successfully processed:', '@count IP addresses successfully processed:');
    $message .= theme('item_list', array(
      'items' => $results,
    ));
    drupal_set_message($message);
  }
}