function helper_process_autocomplete_submit in Helper 7
Process function to add auto-submit functionality to autocomplete elements.
1 string reference to 'helper_process_autocomplete_submit'
- helper_element_info_alter in ./
helper.module - Implements hook_element_info_alter().
File
- ./
helper.module, line 347
Code
function helper_process_autocomplete_submit($element) {
if (!empty($element['#autocomplete_submit'])) {
$element['#attributes']['class'][] = 'form-autocomplete-submit';
$element['#attached']['js'][] = drupal_get_path('module', 'helper') . '/js/autocomplete-submit.js';
}
return $element;
}