summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-08-22 14:11:47 +0000
committerDries Buytaert <dries@buytaert.net>2010-08-22 14:11:47 +0000
commitb59bf5652be3c31a5c8c7f83a897208011a9ed3a (patch)
treef531a544cce061145755a9e64afb5675d66bf15d /includes
parentd1168bf056379810ed10b276655e923017f6728b (diff)
downloadbrdo-b59bf5652be3c31a5c8c7f83a897208011a9ed3a.tar.gz
brdo-b59bf5652be3c31a5c8c7f83a897208011a9ed3a.tar.bz2
- Patch #870584 by sender: drupal_register_shutdown_function() doxygen is wrong.
Diffstat (limited to 'includes')
-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)) {