You are here

function apachesolr_attachments_update_7000 in Apache Solr Attachments 7

Same name and namespace in other branches
  1. 6.3 apachesolr_attachments.install \apachesolr_attachments_update_7000()

Rename variables.

File

./apachesolr_attachments.install, line 129
Install, update and uninstall functions for the apachesolr_attachments module.

Code

function apachesolr_attachments_update_7000() {
  $tmp = variable_get('apachesolr_attachment_extract_using', 'tika');
  variable_set('apachesolr_attachments_extract_using', $tmp);
  variable_del('apachesolr_attachment_extract_using');
  $tmp = variable_get('apachesolr_attachment_excluded_extensions', implode(' ', apachesolr_attachments_default_excluded()));
  variable_set('apachesolr_attachments_excluded_extensions', $tmp);
  variable_del('apachesolr_attachment_excluded_extensions');
  $tmp = variable_get('apachesolr_attachment_excluded_mime', FALSE);
  variable_set('apachesolr_attachments_excluded_mime', $tmp);
  variable_del('apachesolr_attachment_excluded_mime');
  $tmp = variable_get('apachesolr_attachements_cron_time_limit', 15);
  variable_set('apachesolr_attachments_cron_time_limit', $tmp);
  variable_del('apachesolr_attachements_cron_time_limit');
  $tmp = variable_get('apachesolr_attachements_cron_try', 20);
  variable_set('apachesolr_attachments_cron_try', $tmp);
  variable_del('apachesolr_attachements_cron_try');
}