You are here

function diff_update_7303 in Diff 7.3

Renames some internal settings names.

File

./diff.install, line 70
Provides uninstallation functions.

Code

function diff_update_7303() {

  // Get current values.
  $radio = variable_get('diff_script_revisioning', 'simple');
  $leading = variable_get('diff_leading_context_lines', 2);
  $trailing = variable_get('diff_trailing_context_lines', 2);

  // Create new variable names.
  variable_set('diff_radio_behavior', $radio);
  variable_set('diff_context_lines_leading', $leading);
  variable_set('diff_context_lines_trailing', $trailing);

  // Delete old variables.
  variable_del('diff_script_revisioning');
  variable_del('diff_leading_context_lines');
  variable_del('diff_trailing_context_lines');
}