summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-03-13 13:41:39 +0000
committerDries Buytaert <dries@buytaert.net>2007-03-13 13:41:39 +0000
commitc06275f26915d5f52fbce1a57201d1796a4214c6 (patch)
tree11f5efc0370594096dbc93be9ce6247e0286399d /modules/system
parent25fc5960f790a5d6fdec18e6603d39f3ef3341e5 (diff)
downloadbrdo-c06275f26915d5f52fbce1a57201d1796a4214c6.tar.gz
brdo-c06275f26915d5f52fbce1a57201d1796a4214c6.tar.bz2
- Patch #125636by hunmonk: fixed duplication checking on confirm forms.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.module4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index a46823ece..91dc2a6fa 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -2152,6 +2152,10 @@ function confirm_form($form, $question, $path, $description = NULL, $yes = NULL,
$cancel = l($no ? $no : t('Cancel'), $path, array('query' => $query, 'fragment' => $fragment));
drupal_set_title($question);
+
+ // Confirm form fails duplication check, as the form values rarely change -- so skip it.
+ $form['#skip_duplicate_check'] = TRUE;
+
$form['#attributes'] = array('class' => 'confirmation');
$form['description'] = array('#value' => $description);
$form[$name] = array('#type' => 'hidden', '#value' => 1);