summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-03-07 12:59:22 +0000
committerDries Buytaert <dries@buytaert.net>2007-03-07 12:59:22 +0000
commit0be18f09ed9cd3aeaa751efdb75640e602feb0e1 (patch)
tree6bd4c6e9ec89612090308048fad1921643797331 /includes
parent9f91274a5bddeba6c2afb49c81b84402d00e2df8 (diff)
downloadbrdo-0be18f09ed9cd3aeaa751efdb75640e602feb0e1.tar.gz
brdo-0be18f09ed9cd3aeaa751efdb75640e602feb0e1.tar.bz2
- Patch #125418 by hunmonk: make #skip_duplicate_check easier to use.
Diffstat (limited to 'includes')
-rw-r--r--includes/form.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index e7a796f9c..8e7b21805 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -285,7 +285,9 @@ function drupal_prepare_form($form_id, &$form) {
global $user;
$form['#type'] = 'form';
- $form['#skip_duplicate_check'] = FALSE;
+ if (!isset($form['#skip_duplicate_check'])) {
+ $form['#skip_duplicate_check'] = FALSE;
+ }
if (!isset($form['#post'])) {
$form['#post'] = $_POST;