function _drush_strongarm_revert in Strongarm 6.2
Same name and namespace in other branches
- 7.2 strongarm.drush.inc \_drush_strongarm_revert()
Handle the revert of variables into the database.
1 call to _drush_strongarm_revert()
- drush_strongarm_revert in ./
strongarm.drush.inc - Command callback for strongarm_revert.
File
- ./
strongarm.drush.inc, line 31
Code
function _drush_strongarm_revert($force) {
global $conf;
$vars = strongarm_vars_load(TRUE, TRUE);
foreach ($vars as $name => $var) {
if ($force || !empty($var->in_code_only)) {
if (!isset($conf[$name]) || $var->value != $conf[$name]) {
variable_set($name, $var->value);
}
}
}
}