function strongarm_update_6202 in Strongarm 6.2
Update 6202: Set all strongarm variables that are only set in code in the database.
File
- ./
strongarm.install, line 54
Code
function strongarm_update_6202() {
module_load_include('module', 'strongarm', 'strongarm');
$ret = array();
$variables = strongarm_vars_load(TRUE, TRUE);
if (!empty($variables)) {
foreach ($variables as $var_name => $var) {
$exists = db_result(db_query("SELECT name FROM {variable} WHERE name = '%s'", $var_name));
if (!$exists) {
variable_set($var_name, $var->value);
}
}
}
return $ret;
}