diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-27 06:29:47 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2008-09-27 06:29:47 +0000 |
commit | 2cb811acb30f0d1efe395be2cd748e479fe873b6 (patch) | |
tree | 0c5f2015c71fe9a8dd4890f5bbb233ba77a478b1 /includes | |
parent | 8f1728dc15b657478e7a7bd61a36ee7a6a77e3a4 (diff) | |
download | brdo-2cb811acb30f0d1efe395be2cd748e479fe873b6.tar.gz brdo-2cb811acb30f0d1efe395be2cd748e479fe873b6.tar.bz2 |
#229129 follow-up by chx: Fix module dependency checking again.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/form.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc index 1579d5cb9..f9cc3d2cf 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -1166,7 +1166,12 @@ function form_type_image_button_value($form, $edit = FALSE) { */ function form_type_checkbox_value($form, $edit = FALSE) { if ($edit !== FALSE) { - return !empty($edit) ? $form['#return_value'] : 0; + if (empty($form['#disabled'])) { + return !empty($edit) ? $form['#return_value'] : 0; + } + else { + return $form['#default_value']; + } } } |