You are here

function search_by_page_uninstall in Search by Page 6

Same name and namespace in other branches
  1. 8 search_by_page.install \search_by_page_uninstall()
  2. 7 search_by_page.install \search_by_page_uninstall()

Implementation of hook_uninstall().

File

./search_by_page.install, line 136
Install hooks for search_by_page module

Code

function search_by_page_uninstall() {
  drupal_uninstall_schema('search_by_page');

  // Remove information from search index
  db_query('DELETE FROM {search_dataset} WHERE type=\'search_by_page\'');
  db_query('DELETE FROM {search_index} WHERE type=\'search_by_page\'');
  db_query('DELETE FROM {search_node_links} WHERE type=\'search_by_page\'');
  variable_del('search_by_page_settings');
}