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

Fichier

advagg_js_compress/advagg_js_compress.install, line 97

Code

function advagg_js_compress_update_7202(&$sandbox) {
    // Rename advagg_js_inline_compressor to advagg_js_compress_inline.
    $old = variable_get('advagg_js_inline_compressor', NULL);
    if (!is_null($old)) {
        variable_del('advagg_js_inline_compressor');
    }
    if ($old !== ADVAGG_JS_COMPRESS_INLINE) {
        variable_set('advagg_js_compress_inline', $old);
    }
    // Rename advagg_js_inline_compress_if_not_cacheable to
    // advagg_js_compress_inline_if_not_cacheable.
    $old = variable_get('advagg_js_inline_compress_if_not_cacheable', NULL);
    if (!is_null($old)) {
        variable_del('advagg_js_inline_compress_if_not_cacheable');
    }
    if ($old !== ADVAGG_JS_COMPRESS_INLINE_IF_NOT_CACHEABLE) {
        variable_set('advagg_js_compress_inline_if_not_cacheable', $old);
    }
    // Rename advagg_js_inline_compress_if_not_cacheable to
    // advagg_js_compress_inline_if_not_cacheable.
    $old = variable_get('advagg_js_inline_compress_if_not_cacheable', NULL);
    if (!is_null($old)) {
        variable_del('advagg_js_inline_compress_if_not_cacheable');
    }
    if ($old !== ADVAGG_JS_COMPRESS_INLINE_IF_NOT_CACHEABLE) {
        variable_set('advagg_js_compress_inline_if_not_cacheable', $old);
    }
    // Rename advagg_js_max_compress_ratio to advagg_js_compress_max_ratio.
    $old = variable_get('advagg_js_max_compress_ratio', NULL);
    if (!is_null($old)) {
        variable_del('advagg_js_max_compress_ratio');
    }
    if ($old !== ADVAGG_JS_COMPRESS_MAX_RATIO) {
        variable_set('advagg_js_compress_max_ratio', $old);
    }
}