You are here

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

Remove the content bit from the source bitmap.

Return value

object An Update object.

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

File

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

Class

SuggestionStorage
Database CRUD.

Code

public static function updateContentSrc() {
  return db_update('suggestion')
    ->expression('src', 'src & :src', array(
    ':src' => intval(self::PRIORITY_BIT | self::SURFER_BIT),
  ))
    ->condition('src', self::CONTENT_BIT, '&')
    ->execute();
}