From f350158f860e99959e2c36ce24538dcda1c6bc43 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 27 Jul 2009 18:40:12 +0000 Subject: - Patch #531038 by quicksketch: #value_callback missing drupal_function_exists(). --- includes/form.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') 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. -- cgit v1.2.3