overlay_batch_alter
function overlay_batch_alter
overlay_batch_alter(&$batch)
Implements hook_batch_alter().
If the current page request is inside the overlay, add ?render=overlay to the success callback URL, so that it appears correctly within the overlay.
See also
File
- modules/overlay/overlay.module, line 288
- Displays the Drupal administration interface in an overlay.
Code
function overlay_batch_alter(&$batch) { if (overlay_get_mode() == 'child') { if (isset($batch['url_options']['query'])) { $batch['url_options']['query']['render'] = 'overlay'; } else { $batch['url_options']['query'] = array('render' => 'overlay'); } } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!overlay!overlay.module/function/overlay_batch_alter/7.x