diff options
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc index a8e6a7da6..dd19078b8 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -2934,9 +2934,13 @@ function drupal_delete_confirm($confirm) { /** * Initiates the deletion of all constructed packages. Confirmation messages * are bypassed, but abort messages are respected. + * + * @param $destination + * Optional. A destination to go to after all packages are executed. + * Can be either a Drupal path, or an array with the keys 'path', 'query', 'fragment'. */ -function drupal_delete_execute() { - _drupal_delete('execute'); +function drupal_delete_execute($destination = FALSE) { + _drupal_delete('execute', '', array('destination' => $destination)); } /** @@ -3025,7 +3029,6 @@ function _drupal_delete($op, $id = '') { $confirm = NULL; $execute = NULL; - $destination = FALSE; // Process additional arguments. $all_args = func_get_args(); @@ -3081,6 +3084,7 @@ function _drupal_delete($op, $id = '') { // Execute all packages. case 'execute': $execute = TRUE; + $destination = $args['destination']; break; } |