You are here

function readmorecontrol_update_7000 in Read More Control 7

Update naming of internal variable 'node_readmorecontrol_%'.

File

./readmorecontrol.install, line 40
Standand installation functions.

Code

function readmorecontrol_update_7000() {
  foreach (node_type_get_types() as $key => $type) {

    // Only update if it is set so that the defaults still work.
    if ($value = variable_get('node_readmorecontrol_' . $key, FALSE)) {
      variable_set('readmorecontrol_node_' . $key, $value);
      variable_del('node_readmorecontrol_' . $key);
    }
  }
}