You are here

function oa_clone_save_batch_info in Open Atrium Clone 7.2

Save batch redirect info for oa_wizard.

1 string reference to 'oa_clone_save_batch_info'
oa_clone_node_insert in ./oa_clone.module
Implements hook_node_insert().

File

./oa_clone.module, line 608

Code

function oa_clone_save_batch_info($url, $options) {
  if (!empty($options['query']['op']) && $options['query']['op'] == 'finish') {

    // Redirect when finished to source_url.
    drupal_goto($url);
  }
  else {

    // Tell oa_wizard where to redirect the page to (for batching).
    $redirect =& drupal_static('oa_wizard_redirect');
    $redirect = url($url, $options);
  }
}