1, 'args' => (isset($args) && is_array($args) ? $args : array()), ); drupal_add_js(array('modalFrameChild' => $child_js_settings), 'setting'); // Tell Drupal's Form API that we are requested to close the modal dialog, // so we do not wish to perform redirections after submitted form has been // processed. $GLOBALS['modalframe_close_dialog'] = TRUE; }