You are here

function uc_ups_update_7300 in Ubercart 7.3

Separates markup variables into rate_markup and weight_markup.

File

shipping/uc_ups/uc_ups.install, line 80
Install, update and uninstall functions for the uc_ups module.

Code

function uc_ups_update_7300() {

  // Rename variables while preserving previous setting values
  variable_set('uc_ups_rate_markup', variable_get('uc_ups_markup', ''));
  variable_set('uc_ups_rate_markup_type', variable_get('uc_ups_markup_type', ''));

  // Remove old variables
  variable_del('uc_ups_markup');
  variable_del('uc_ups_markup_type');
}