You are here

function google_appliance_uninstall in Google Search Appliance 7

Same name and namespace in other branches
  1. 6.2 google_appliance.install \google_appliance_uninstall()

Implements hook_uninstall(). drop settings

File

./google_appliance.install, line 12
install, update, and uninstall hooks

Code

function google_appliance_uninstall() {
  $field_keys = array(
    'hostname',
    'collection',
    'frontend',
    'timeout',
    'autofilter',
    'language_filter_toggle',
    'language_filter_options',
    'query_inspection',
    'search_title',
    'results_per_page',
    'advanced_search_reporting',
    'spelling_suggestions',
    'onebox_modules',
    'block_visibility_settings',
    'sitelinks_search_box',
    'drupal_path',
    'error_gsa_no_results',
    'error_gsa_no_results_format',
    'error_curl_error',
    'error_curl_error_format',
    'error_lib_xml_parse_error',
    'error_lib_xml_parse_error_format',
  );
  foreach ($field_keys as $field) {
    variable_del('google_appliance_' . $field);
  }
}