summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/system/system.module5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 981284d4e..4b69e964b 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -2542,7 +2542,10 @@ function confirm_form($form, $question, $path, $description = NULL, $yes = NULL,
$form['actions'] = array('#prefix' => '<div class="container-inline">', '#suffix' => '</div>');
$form['actions']['submit'] = array('#type' => 'submit', '#value' => $yes ? $yes : t('Confirm'));
$form['actions']['cancel'] = array('#markup' => $cancel);
- $form['#theme'] = 'confirm_form';
+ // By default, render the form using theme_confirm_form().
+ if (!isset($form['#theme'])) {
+ $form['#theme'] = 'confirm_form';
+ }
return $form;
}