You are here

function _search_by_page_remove_searchinfo in Search by Page 7

Same name and namespace in other branches
  1. 8 search_by_page.module \_search_by_page_remove_searchinfo()
  2. 6 search_by_page.module \_search_by_page_remove_searchinfo()

Internal function: removes a path item from the search database.

Parameters

$pid: ID of the path to remove.

2 calls to _search_by_page_remove_searchinfo()
search_by_page_update_index in ./search_by_page.module
Implements hook_update_index().
_search_by_page_remove_path in ./search_by_page.module
Internal function: removes a path item from the paths and search database.

File

./search_by_page.module, line 1824
Main module file for Drupal module Search by Page.

Code

function _search_by_page_remove_searchinfo($pid) {
  db_delete('search_dataset')
    ->condition('type', 'search_by_page')
    ->condition('sid', $pid)
    ->execute();
  db_delete('search_index')
    ->condition('type', 'search_by_page')
    ->condition('sid', $pid)
    ->execute();
  db_delete('search_node_links')
    ->condition('type', 'search_by_page')
    ->condition('sid', $pid)
    ->execute();
}