public static function SuggestionStorage::getKeywords in Autocomplete Search Suggestions 7
Fetch an array of priority suggestions.
Return value
array An array of suggestions.
1 call to SuggestionStorage::getKeywords()
- suggestion_admin_settings_form in ./
suggestion.admin.inc - Menu callback to configure suggestion settings.
File
- src/
SuggestionStorage.php, line 134 - CRUD methods for the suggestion module.
Class
- SuggestionStorage
- Database CRUD.
Code
public static function getKeywords() {
return db_query("SELECT ngram FROM {suggestion} WHERE src & :src ORDER BY ngram ASC", array(
':src' => self::PRIORITY_BIT,
))
->fetchCol();
}