You are here

function biblio_save_imported_nodes in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 includes/biblio.import.export.inc \biblio_save_imported_nodes()
  2. 6 biblio.import.export.inc \biblio_save_imported_nodes()
  3. 7.2 includes/biblio.import.export.inc \biblio_save_imported_nodes()

Save node imported from a file.

Parameters

$node_array: a 2 dimensional array containing all the node information

Return value

The node ids of the saved nodes

File

includes/biblio.import.export.inc, line 580
Functions that are used to import and export biblio data.

Code

function biblio_save_imported_nodes(&$node_array) {
  $dup_count = 0;
  if (function_exists('node_save')) {
    foreach ($node_array as $imp_node) {
      $node_ids[] = biblio_save_node($imp_node);
    }
  }

  /*  if ($dup_count)
    drupal_set_message(t("Detected @dupcount duplicate node(s) when importing", array('@dupcount' => $dup_count)), 'error');

    drupal_set_message(t("Succesfully imported @count entries.", array('@count' => count($node_ids))), 'status');
     */
  return $node_ids;
}