You are here

function regcode_ie_update_7001 in Registration codes 7

Same name and namespace in other branches
  1. 7.2 regcode_ie/regcode_ie.install \regcode_ie_update_7001()

Implements hook_update_N().

File

regcode_ie/regcode_ie.install, line 20
Install, uninstall and scheme functions for the regcode_ie module.

Code

function regcode_ie_update_7001() {
  $vars = array(
    'regcode_import_delimiter' => ',',
    'regcode_import_enclosure' => '"',
    'regcode_import_fieldorder' => 'code',
  );
  foreach ($vars as $var_name => $default_value) {
    variable_set(str_replace('regcode_import', 'regcode_ie', $var_name), variable_get($var_name, $default_value));
    variable_del($var_name);
  }
  return 'Renamed variables successfully';
}