function search_autocomplete_library_info_alter in Search Autocomplete 8
Same name and namespace in other branches
- 2.x search_autocomplete.module \search_autocomplete_library_info_alter()
Implements hook_library_info_alter().
File
- ./
search_autocomplete.module, line 206 - Provides autocompletion in any field from GUI.
Code
function search_autocomplete_library_info_alter(array &$libraries, $extension) {
if ($extension == 'core' && isset($libraries['drupal.autocomplete'])) {
$libraries['drupal.autocomplete']['js'] = [
'/' . drupal_get_path('module', 'search_autocomplete') . '/js/jquery.autocomplete.js' => [],
];
}
}