You are here

function advagg_css_compress_update_7201 in Advanced CSS/JS Aggregation 7.2

Change variable names so they are prefixed with the modules name.

File

advagg_css_compress/advagg_css_compress.install, line 95
Handles AdvAgg CSS compress installation and upgrade tasks.

Code

function advagg_css_compress_update_7201(&$sandbox) {

  // Rename advagg_css_inline_compressor to advagg_css_compress_inline.
  $old = variable_get('advagg_css_inline_compressor', NULL);
  if (!is_null($old)) {
    variable_del('advagg_css_inline_compressor');
  }
  if ($old !== ADVAGG_CSS_COMPRESS_INLINE) {
    variable_set('advagg_css_compress_inline', $old);
  }

  // Rename advagg_css_inline_compress_if_not_cacheable to
  // advagg_css_compress_inline_if_not_cacheable.
  $old = variable_get('advagg_css_inline_compress_if_not_cacheable', NULL);
  if (!is_null($old)) {
    variable_del('advagg_css_inline_compress_if_not_cacheable');
  }
  if ($old !== ADVAGG_CSS_COMPRESS_INLINE_IF_NOT_CACHEABLE) {
    variable_set('advagg_css_compress_inline_if_not_cacheable', $old);
  }
}