You are here

public static function SuggestionStorage::deleteContentSuggestion in Autocomplete Search Suggestions 7

Delete all content suggestions.

Return value

object A Delete object.

1 call to SuggestionStorage::deleteContentSuggestion()
SuggestionHelper::index in src/SuggestionHelper.php
Create a suggestion index from content titles.

File

src/SuggestionStorage.php, line 25
CRUD methods for the suggestion module.

Class

SuggestionStorage
Database CRUD.

Code

public static function deleteContentSuggestion() {
  return db_delete('suggestion')
    ->condition('src', self::CONTENT_BIT)
    ->execute();
}