function autocomplete_deluxe_value in Autocomplete Deluxe 7
Same name and namespace in other branches
- 7.2 autocomplete_deluxe.module \autocomplete_deluxe_value()
Helper function to determine the value for a 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 331 - 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 proccess 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();
}