overlay_close_dialog($redirect = NULL)Close the overlay and redirect the parent window to a new path.
$redirect The path that should open in the parent window after the overlay closes.
modules/overlay/overlay.module, line 542
<?php
function overlay_close_dialog($redirect = NULL) {
if (!isset($redirect)) {
$redirect = current_path();
}
$settings = array(
'overlayChild' => array(
'closeOverlay' => TRUE,
'statusMessages' => theme('status_messages'),
'args' => $args,
'redirect' => url($redirect),
),
);
drupal_add_js($settings, array('type' => 'setting'));
return $settings;
}
?>