You are here

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

Truncate the suggestion table.

Return value

object A new TruncateQuery object for this connection.

2 calls to SuggestionStorage::truncateSuggestion()
drush_suggestion_clear in ./suggestion.drush.inc
Truncate suggestion table.
suggestion_index_block_ajax_callback in ./suggestion.module
Drupal AJAX callback form for the "Index Suggestions" block.

File

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

Class

SuggestionStorage
Database CRUD.

Code

public static function truncateSuggestion() {
  return db_truncate('suggestion')
    ->execute();
}