summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-27 18:40:12 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-27 18:40:12 +0000
commitf350158f860e99959e2c36ce24538dcda1c6bc43 (patch)
tree339a72e0e7ab2a65ee64eb149e4e8195e54be758 /includes
parent7d41b2d7f5eed4fa274a948fa2c96d150f453f0e (diff)
downloadbrdo-f350158f860e99959e2c36ce24538dcda1c6bc43.tar.gz
brdo-f350158f860e99959e2c36ce24538dcda1c6bc43.tar.bz2
- Patch #531038 by quicksketch: #value_callback missing drupal_function_exists().
Diffstat (limited to 'includes')
-rw-r--r--includes/form.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc
index 967c3db7f..f9bcd88bf 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -1093,7 +1093,7 @@ function _form_builder_handle_input_element($form_id, &$element, &$form_state) {
// If we have input for the current element, assign it to the #value property.
if (!$form_state['programmed'] || isset($input)) {
// Call #type_value to set the form value;
- if (function_exists($value_callback)) {
+ if (drupal_function_exists($value_callback)) {
$element['#value'] = $value_callback($element, $input, $form_state);
}
if (!isset($element['#value']) && isset($input)) {
@@ -1108,7 +1108,7 @@ function _form_builder_handle_input_element($form_id, &$element, &$form_state) {
// Load defaults.
if (!isset($element['#value'])) {
// Call #type_value without a second argument to request default_value handling.
- if (function_exists($value_callback)) {
+ if (drupal_function_exists($value_callback)) {
$element['#value'] = $value_callback($element);
}
// Final catch. If we haven't set a value yet, use the explicit default value.