You are here

function _sheetnode_google_batch_import_finished in Sheetnode 7

Same name and namespace in other branches
  1. 6 modules/sheetnode_google/sheetnode_google.import.inc \_sheetnode_google_batch_import_finished()
  2. 7.2 modules/sheetnode_google/sheetnode_google.import.inc \_sheetnode_google_batch_import_finished()
1 string reference to '_sheetnode_google_batch_import_finished'
sheetnode_google_batch_import in modules/sheetnode_google/sheetnode_google.module
API function to batch import several files using Batch API.

File

modules/sheetnode_google/sheetnode_google.import.inc, line 199
Extension to sheetnode for importing from Google sheets.

Code

function _sheetnode_google_batch_import_finished($success, $results, $operations) {
  $batch =& batch_get();
  if (empty($batch['redirect']) && !empty($results)) {
    drupal_goto('node/' . $results[0]);
  }
}