summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/bootstrap.inc17
1 files changed, 8 insertions, 9 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index c1a2f3151..c41b67bde 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -2969,26 +2969,25 @@ function drupal_placeholder($text) {
}
/**
- *
* Register a function for execution on shutdown.
*
- * Wrapper for register_shutdown_function() which catches thrown exceptions
- * to avoid "Exception thrown without a stack frame in Unknown".
+ * Wrapper for register_shutdown_function() that catches thrown exceptions to
+ * avoid "Exception thrown without a stack frame in Unknown".
*
* @param $callback
* The shutdown function to register.
- * @param $parameters
- * It is possible to pass parameters to the shutdown function by passing
- * additional parameters.
+ * @param ...
+ * Additional arguments to pass to the shutdown function.
+ *
* @return
* Array of shutdown functions to be executed.
*
* @see register_shutdown_function()
* @ingroup php_wrappers
*/
-function &drupal_register_shutdown_function($callback = NULL, $parameters = NULL) {
- // We cannot use drupal_static() here because the static cache is reset
- // during batch processing, which breaks batch handling.
+function &drupal_register_shutdown_function($callback = NULL) {
+ // We cannot use drupal_static() here because the static cache is reset during
+ // batch processing, which breaks batch handling.
static $callbacks = array();
if (isset($callback)) {