| 1 |
<?PHP |
<?PHP |
| 2 |
|
|
| 3 |
// $Id: biblio.import.export.inc,v 1.44.2.1 2009/10/27 17:04:12 rjerome Exp $ |
// $Id: biblio.import.export.inc,v 1.44.2.2 2009/10/28 21:18:43 rjerome Exp $ |
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 6 |
* Functions that are used to import and export biblio data. |
* Functions that are used to import and export biblio data. |
| 224 |
$dummy = array(); |
$dummy = array(); |
| 225 |
$content = biblio_import($import_file, $filetype, $userid, $terms, $batch_proc, $session_id, $dummy); |
$content = biblio_import($import_file, $filetype, $userid, $terms, $batch_proc, $session_id, $dummy); |
| 226 |
} |
} |
| 227 |
file_delete($import_file->filepath); |
file_delete($import_file); |
| 228 |
} else { |
} else { |
| 229 |
drupal_set_message(t("File was NOT successfully uploaded"), 'error'); |
drupal_set_message(t("File was NOT successfully uploaded"), 'error'); |
| 230 |
} |
} |
| 374 |
} |
} |
| 375 |
if (!empty($node_ids) && !$batch ) { |
if (!empty($node_ids) && !$batch ) { |
| 376 |
if (count($node_ids)) { |
if (count($node_ids)) { |
| 377 |
db_query('UPDATE {node} SET uid = %d WHERE nid IN(%s)', $userid, implode(',', $node_ids)); |
//FIXME: check to see if this is still valid |
| 378 |
db_query('UPDATE {node_revisions} SET uid = %d WHERE nid IN(%s)', $userid, implode(',', $node_ids)); |
// db_query('UPDATE {node} SET uid = %d WHERE nid IN(%s)', $userid, implode(',', $node_ids)); |
| 379 |
|
// db_query('UPDATE {node_revisions} SET uid = %d WHERE nid IN(%s)', $userid, implode(',', $node_ids)); |
| 380 |
drupal_set_message(t("<i><b>%count</b></i> nodes were successfully imported.", array('%count' => count($node_ids))), 'status'); |
drupal_set_message(t("<i><b>%count</b></i> nodes were successfully imported.", array('%count' => count($node_ids))), 'status'); |
| 381 |
} |
} |
| 382 |
|
|