function cf_error_update_7200 in Common Functionality 7.2
Upgrade module from 7.x-1.x to 7.x-2.x.
File
- modules/
cf_error/ cf_error.install, line 40 - Install file for cf_error module.
Code
function cf_error_update_7200() {
db_query('UPDATE {system} SET weight = -10 WHERE name = \'cf_error\'');
// cf_settings is treated as a soft-dependency and so register the variables only if cf_settings is loaded.
if (module_exists('cf_settings')) {
$registration = cf_settings_register('cf_error_backtrace_mode', 'drupal_variables', 'cf_error', 2);
if (!$registration) {
watchdog('cf_error', "Failed to register settings variable: cf_error_backtrace_show");
}
}
else {
variable_set('cf_error_backtrace_show', 2);
}
}