1 system.install system_update_1005()

Convert basic system variables to the state system.

Related topics

File

core/modules/system/system.install, line 1786
Install, update and uninstall functions for the system module.

Code

function system_update_1005() {
  $variables = array(
    'install_time' => REQUEST_TIME,
    'install_task' => 'done',
    'maintenance_mode' => FALSE,
    'cron_key' => NULL,
    'cron_last' => REQUEST_TIME,
    'css_js_query_string' => '',
  );
  foreach ($variables as $name => $default) {
    state_set($name, update_variable_get($name, $default));
    update_variable_del($name);
  }
}