function _search_by_page_remove_path in Search by Page 8
Same name and namespace in other branches
- 6 search_by_page.module \_search_by_page_remove_path()
- 7 search_by_page.module \_search_by_page_remove_path()
Internal function: removes a path item from the paths and search database.
Parameters
$pid: ID of the path to remove.
2 calls to _search_by_page_remove_path()
- search_by_page_force_remove in ./
search_by_page.module - Removes a page from Search by Page.
- search_by_page_rebuild_paths in ./
search_by_page.module - Rebuilds the paths table for a particular module.
File
- ./
search_by_page.module, line 1601 - Main module file for Drupal module Search by Page.
Code
function _search_by_page_remove_path($pid) {
\Drupal::database()
->delete('search_by_page_path')
->condition('pid', $pid)
->execute();
_search_by_page_remove_searchinfo($pid);
}