summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-08-12 11:45:14 +0000
committerDries Buytaert <dries@buytaert.net>2009-08-12 11:45:14 +0000
commita83e5605c763ddb2995cbec002576f29d75a9402 (patch)
treef31ee90e3f5af27beeecf3ee8eee4248e95dca5c /includes
parent99ce96e5da2cdd92d5bab55ea275f25e05cdd1a4 (diff)
downloadbrdo-a83e5605c763ddb2995cbec002576f29d75a9402.tar.gz
brdo-a83e5605c763ddb2995cbec002576f29d75a9402.tar.bz2
- Patch #546568 by quicksketch: consistently pass in to #value_callback functions.
Diffstat (limited to 'includes')
-rw-r--r--includes/form.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 866ac2ba7..6f7d96305 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -1113,7 +1113,7 @@ function _form_builder_handle_input_element($form_id, &$element, &$form_state) {
if (!isset($element['#value'])) {
// Call #type_value without a second argument to request default_value handling.
if (drupal_function_exists($value_callback)) {
- $element['#value'] = $value_callback($element);
+ $element['#value'] = $value_callback($element, FALSE, $form_state);
}
// Final catch. If we haven't set a value yet, use the explicit default value.
// Avoid image buttons (which come with garbage value), so we only get value