function advagg_update_7000 in Advanced CSS/JS Aggregation 7
Upgrades Advanced Aggregation from Drupal 6 to Drupal 7
File
- ./
advagg.install, line 721 - Handles Advanced Aggregation installation and upgrade tasks.
Code
function advagg_update_7000(&$sandbox) {
$variables = array(
'advagg_checksum_mode' => array(
'mtime' => 'filemtime',
),
);
foreach ($variables as $name => $values) {
foreach ($values as $old => $new) {
$variable = variable_get($name, $old);
if ($variable === $old) {
variable_set($name, $new);
}
}
}
return t('Upgraded Advanced Aggregation from Drupal 6 to Drupal 7.');
}