public static function SuggestionStorage::getContentTypes in Autocomplete Search Suggestions 7
Fetch an array of content types.
Return value
array An array of content types.
1 call to SuggestionStorage::getContentTypes()
- suggestion_admin_settings_form in ./
suggestion.admin.inc - Menu callback to configure suggestion settings.
File
- src/
SuggestionStorage.php, line 108 - CRUD methods for the suggestion module.
Class
- SuggestionStorage
- Database CRUD.
Code
public static function getContentTypes() {
return db_query("SELECT type, name FROM {node_type} ORDER BY name ASC, type ASC")
->fetchAllKeyed();
}