You are here

function _evoc_install_batch_finished in RDF Extensions 7.2

Evoc Install batch 'finished' callback.

1 string reference to '_evoc_install_batch_finished'
evoc_import_core in evoc/evoc.pages.inc
Provide a callback for batch importing the vocabularies used in core.

File

evoc/evoc.pages.inc, line 153
Page callbacks for importing a vocabulary.

Code

function _evoc_install_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message(t('The RDF vocabularies ' . implode(', ', $results) . ' have been imported.'));
    return;
  }
  else {
    drupal_set_message(t('An error occurred and processing did not complete.'), 'error');
    $message = format_plural(count($results), '1 item successfully processed:', '@count items successfully processed:');
    $message .= theme('item_list', array(
      'items' => $results,
    ));
    drupal_set_message($message);
    return;
  }
}