You are here

function browscap_update_7001 in Browscap 7

Port and remove old variables.

File

./browscap.install, line 121
Install, update and uninstall functions for the Browscap module.

Code

function browscap_update_7001() {

  // Port and remove browscap_update_interval
  $browscap_update_interval = variable_get('browscap_update_interval', 7);
  if ($browscap_update_interval == 0) {
    variable_set('browscap_enable_automatic_updates', FALSE);
  }
  variable_del('browscap_update_interval');

  // Port and remove browscap_monitor
  $browscap_monitor = variable_get('browscap_monitor', FALSE);
  variable_set('browscap_enable_user_agent_log', $browscap_monitor);
  variable_del('browscap_monitor');
}