You are here

function cvsancestry_import_finished in Taxonomy import/export via XML 7

Same name and namespace in other branches
  1. 6.2 csvancestry_format.inc \cvsancestry_import_finished()

Summarize the results.

1 string reference to 'cvsancestry_import_finished'
taxonomy_xml_csvancestry_parse in formats/csvancestry_format.inc
Scan the input CSV file and create a taxonomy structure out of it.

File

formats/csvancestry_format.inc, line 84

Code

function cvsancestry_import_finished($success, $results, $operations) {
  $results = array_merge(array(
    'new_terms' => array(),
    'old_terms' => array(),
  ), $results);
  if ($success) {
    $message = t('%new new and %old old terms processed', array(
      '%new' => count($results['new_terms']),
      '%old' => count($results['old_terms']),
    ));
  }
  else {
    $message = t('Failed ', array());
  }
  drupal_set_message($message);
}