You are here

function cpn_update_7100 in Code per Node 7

Migrate any sites that may have used the patch from http://drupal.org/node/1423408 to control CSS/JS aggregation.

File

./cpn.install, line 305
Installation, schema and update hook implementations.

Code

function cpn_update_7100() {
  $empty = 'flying monkeys';
  $preprocess = variable_get('cpn_preprocess', $empty);
  if ($preprocess != $empty) {
    variable_set('cpn_aggregation_css', $preprocess);
    variable_set('cpn_aggregation_js', $preprocess);
    variable_del('cpn_preprocess');
    drupal_set_message(t("The CPN setting from issue #1423408 has been converted to the new format"));
  }
}