function autocomplete_deluxe_value in Autocomplete Deluxe 7.2
Same name and namespace in other branches
- 7 autocomplete_deluxe.module \autocomplete_deluxe_value()
Helper function-determines the value for an autocomplete deluxe form element.
1 string reference to 'autocomplete_deluxe_value'
- autocomplete_deluxe_element_info in ./
autocomplete_deluxe.module - Implements hook_element_info().
File
- ./
autocomplete_deluxe.module, line 432 - Define enhanced autocomplete wdiget.
Code
function autocomplete_deluxe_value(&$element, $input = FALSE, $form_state = NULL) {
// This runs before child elements are processed, so we cannot calculate the
// value here. But we have to make sure the value is an array, so the form
// API is able to process the children to set their values in the array. Thus
// once the form API has finished processing the element, the value is an
// array containing the child element values. Then finally the after build
// callback converts it back to the numeric value and sets that.
return array();
}