You are here

function media_sitemap_finished in Media Sitemap 7

Finish of batch.

1 string reference to 'media_sitemap_finished'
_media_sitemap_generate_sitemap in ./media_sitemap.module
Creating batch for generating the sitemap.

File

./media_sitemap.module, line 200
This module is used for creating XML sitemap of Image/Video for Google.

Code

function media_sitemap_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message(t('Image Sitemap Generated Successfully.'));
  }
  else {
    $error_operation = reset($operations);
    drupal_set_message(t('An error occurred while processing @operation with arguments : @args', array(
      '@operation' => $error_operation[0],
      '@args' => print_r($error_operation[0], TRUE),
    )));
  }
  drupal_goto(MEDIA_SITEMAP_ADMIN_PATH . "/list");
  watchdog('import', 'import finished');
}