You are here

function theme_finder_autocomplete_autofill in Finder 7

Same name and namespace in other branches
  1. 6 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

$variables: '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 294
The finder autocomplete module.

Code

function theme_finder_autocomplete_autofill($variables) {
  $option =& $variables['option'];
  return $option->{$option->field_name};
}