You are here

function modules_weight_update_7100 in Modules weight 7

Change the name of the show_system_modules variable.

File

./modules_weight.install, line 26
Install, update and uninstall functions.

Code

function modules_weight_update_7100() {

  // All variables defined by your module must be prefixed with your module's
  // name to avoid name collisions with others.
  // Getting the old value.
  $old_value = variable_get('show_system_modules', FALSE);

  // Setting the value to the new variable.
  variable_set('modules_weight_show_system_modules', $old_value);

  // Deleting the old variable.
  variable_del('show_system_modules');
}