2 * Implements hook_batch_alter().
4 function {{ machine_name }}_batch_alter(&$batch) {
5 // If the current page request is inside the overlay, add ?render=overlay to
6 // the success callback URL, so that it appears correctly within the overlay.
7 if (overlay_get_mode() == 'child') {
8 if (isset($batch['url_options']['query'])) {
9 $batch['url_options']['query']['render'] = 'overlay';
12 $batch['url_options']['query'] = array('render' => 'overlay');