function theme_finder_autocomplete_autofill in Finder 6
Same name and namespace in other branches
- 7 modules/finder_autocomplete/finder_autocomplete.module \theme_finder_autocomplete_autofill()
Theme an autocomplete autofill text value.
This will actually set the value sent to the submit function. Be careful with this if you need to use it. Getting fancy here might mean you have to start hooking into the form's validate/submit operations to allow Finder to process the results properly.
Parameters
$option: The result data.
$finder_element: The finder element object.
1 theme call to theme_finder_autocomplete_autofill()
- finder_autocomplete_autocomplete in modules/
finder_autocomplete/ finder_autocomplete.module - Menu callback; get autocomplete suggestions.
File
- modules/
finder_autocomplete/ finder_autocomplete.module, line 311 - The finder autocomplete module.
Code
function theme_finder_autocomplete_autofill($option, $finder_element) {
return $option->{$option->field_name};
}