function linkit_autocomplete_search_plugins in Linkit 7.3
Perform autocomplete search with the Linkit search plugins.
Parameters
$search_string: The search string.
Return value
An array with the results objects, or an empty array if no results.
1 call to linkit_autocomplete_search_plugins()
- linkit_autocomplete in ./
linkit.module - Autocomplete callback function.
File
- ./
linkit.module, line 796 - Main file for Linkit module.
Code
function linkit_autocomplete_search_plugins($search_string) {
$matches = array();
$profile = linkit_get_active_profile();
// Get matches from all search plugins.
foreach ($profile
->getEnabledsearchPlugins() as $plugin_name => $plugin) {
$matches = array_merge($matches, $plugin
->fetchResults($search_string));
}
return $matches;
}