diff options
Diffstat (limited to 'includes/batch.inc')
-rw-r--r-- | includes/batch.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/batch.inc b/includes/batch.inc index 5cdcec0bd..095b9e78b 100644 --- a/includes/batch.inc +++ b/includes/batch.inc @@ -445,7 +445,10 @@ function _batch_finished() { // If no redirection happened, save the final $form_state value to be // retrieved by drupal_get_form() and redirect to the originating page. $_SESSION['batch_form_state'] = $_batch['form_state']; - drupal_goto($_batch['source_page']); + $function = $_batch['redirect_callback']; + if (function_exists($function)) { + $function($_batch['source_url'], array('op' => 'finish', 'id' => $_batch['id'])); + } } } |