You are here

function apachesolr_attachments_uninstall in Apache Solr Attachments 6

Same name and namespace in other branches
  1. 5 apachesolr_attachments.install \apachesolr_attachments_uninstall()
  2. 6.3 apachesolr_attachments.install \apachesolr_attachments_uninstall()
  3. 6.2 apachesolr_attachments.install \apachesolr_attachments_uninstall()
  4. 7 apachesolr_attachments.install \apachesolr_attachments_uninstall()

Implementation of hook_uninstall().

File

./apachesolr_attachments.install, line 13

Code

function apachesolr_attachments_uninstall() {
  variable_del('apachesolr_attachments_tika_path');
  variable_del('apachesolr_attachments_tika_jar');
  variable_del('apachesolr_attachments_exclude_types');
  variable_del('apachesolr_attachment_excluded_extensions');
  variable_del('apachesolr_attachment_extract_using');
  variable_del('apachesolr_attachment_excluded_mime');
  variable_del('apachesolr_attachments_cron_limit');
  variable_del('apachesolr_attachements_cron_time_limit');
  variable_del('apachesolr_attachements_cron_try');
  $stored = variable_get('apachesolr_index_last', array());
  unset($stored['apachesolr_attachments']);
  variable_set('apachesolr_index_last', $stored);
  drupal_uninstall_schema('apachesolr_attachments');
}