/[drupal]/contributions/modules/biblio/biblio.import.export.inc
ViewVC logotype

Diff of /contributions/modules/biblio/biblio.import.export.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.44.2.2 by rjerome, Wed Oct 28 21:18:43 2009 UTC revision 1.44.2.3 by rjerome, Fri Oct 30 02:33:09 2009 UTC
# Line 1  Line 1 
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.
# Line 224  function biblio_import_form_submit($form Line 224  function biblio_import_form_submit($form
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      }      }
# Line 374  function biblio_import($import_file, $ty Line 374  function biblio_import($import_file, $ty
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    

Legend:
Removed from v.1.44.2.2  
changed lines
  Added in v.1.44.2.3

  ViewVC Help
Powered by ViewVC 1.1.3