You are here

function _search_by_page_remove_searchinfo in Search by Page 6

Same name and namespace in other branches
  1. 8 search_by_page.module \_search_by_page_remove_searchinfo()
  2. 7 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
Implementation of 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 1670
Main module file for Drupal module Search by Page.

Code

function _search_by_page_remove_searchinfo($pid) {
  db_query("DELETE FROM {search_dataset} WHERE type='search_by_page' AND sid=%d", $pid);
  db_query("DELETE FROM {search_index} WHERE type='search_by_page' AND sid=%d", $pid);
  db_query("DELETE FROM {search_node_links} WHERE type='search_by_page' AND sid=%d", $pid);
}