You are here

function biblio_citeproc_update_installed_finished in Bibliography Module 7

1 string reference to 'biblio_citeproc_update_installed_finished'
biblio_citeproc_update_installed in modules/CiteProc/biblio_citeproc.admin.inc

File

modules/CiteProc/biblio_citeproc.admin.inc, line 798

Code

function biblio_citeproc_update_installed_finished($success, $results, $operations) {
  if ($success) {
    if (count($results['updated'])) {
      $message = format_plural(count($results['updated']), 'The following style was updated.', 'The following @count styles were updated.');
      drupal_set_message($message);
      foreach ($results['updated'] as $style) {
        drupal_set_message($style);
      }
    }
    else {
      $message = t('No updates were found, all styles are current.');
      drupal_set_message($message);
    }
  }
  else {
    drupal_set_message(t('Finished with an error.'));
  }
}