summaryrefslogtreecommitdiff
path: root/includes/form.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/form.inc')
-rw-r--r--includes/form.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc
index c59eacb10..65ea10f46 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -2501,8 +2501,9 @@ function form_clean_id($id = NULL, $flush = FALSE) {
* 'init_message': message displayed while the processing is initialized.
* Defaults to t('Initializing.').
* 'progress_message': message displayed while processing the batch.
- * Available placeholders are @current, @remaining, @total and @percent.
- * Defaults to t('Remaining @remaining of @total.').
+ * Available placeholders are @current, @remaining, @total, @percentage,
+ * @estimate and @elapsed.
+ * Defaults to t('Completed @current of @total.').
* 'error_message': message displayed if an error occurred while processing
* the batch.
* Defaults to t('An error has occurred.').
@@ -2539,6 +2540,8 @@ function batch_set($batch_definition) {
'sandbox' => array(),
'results' => array(),
'success' => FALSE,
+ 'start' => microtime(TRUE),
+ 'elapsed' => 0,
);
// Use get_t() to allow batches at install time.
$t = get_t();