diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-30 02:35:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-30 02:35:54 +0000 |
commit | 523d0da8b70595a606ebdcc5d24af478d8c4da00 (patch) | |
tree | 5cef37397073d14675dabbe3d59032cd00fef2a1 | |
parent | 838b4331106b082bee0c375d440960c34148357d (diff) | |
download | brdo-523d0da8b70595a606ebdcc5d24af478d8c4da00.tar.gz brdo-523d0da8b70595a606ebdcc5d24af478d8c4da00.tar.bz2 |
- Patch #299742 by Darren Oh: #aha didn't work for checkboxes.
-rw-r--r-- | includes/form.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc index 2b61edffb..88e292470 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -1994,7 +1994,15 @@ function form_process_checkboxes($element) { } foreach ($element['#options'] as $key => $choice) { if (!isset($element[$key])) { - $element[$key] = array('#type' => 'checkbox', '#processed' => TRUE, '#title' => $choice, '#return_value' => $key, '#default_value' => isset($value[$key]), '#attributes' => $element['#attributes']); + $element[$key] = array( + '#type' => 'checkbox', + '#processed' => TRUE, + '#title' => $choice, + '#return_value' => $key, + '#default_value' => isset($value[$key]), + '#attributes' => $element['#attributes'], + '#ahah' => isset($element['#ahah']) ? $element['#ahah'] : NULL, + ); } } } |