Shortcut to evaluate if s3fs no_rewrite_cssjs is set or empty.

If this needs to be accessed in a loop, it is more efficient to call advagg_get_s3fs_config() once from outside of the loop. An example can be seen in the advagg_install_check_via_http function.

Parameters

bool $is_set: Check if no_write_cssjs field is set (TRUE) or empty (FALSE).

Return value

bool TRUE or FALSE is returned based on evaluating the field. If s3fs_config returns a NULL, evaluate the function to FALSE.

See also

advagg_get_s3fs_config()

Related topics

6 calls to advagg_s3fs_evaluate_no_rewrite_cssjs()
advagg_admin_info_form in ./advagg.admin.inc
Form builder; Show info about advagg and advagg settings.
advagg_advagg_get_info_on_files_alter in ./advagg.advagg.inc
Implements hook_advagg_get_info_on_files_alter().
advagg_create_subfile in ./advagg.inc
Write CSS parts to disk; used when CSS selectors in one file is > 4096.
advagg_install_fast_checks in ./advagg.install
Run various checks that are fast.
advagg_load_css_stylesheet in ./advagg.inc
Loads the stylesheet and resolves all @import commands.

... See full list

File

./advagg.module, line 1419

Code

function advagg_s3fs_evaluate_no_rewrite_cssjs($is_set = TRUE) {
    $s3fs_no_rewrite_cssjs = advagg_get_s3fs_config('no_rewrite_cssjs');
    if (!is_null($s3fs_no_rewrite_cssjs)) {
        return $is_set ? !empty($s3fs_no_rewrite_cssjs) : empty($s3fs_no_rewrite_cssjs);
    }
    else {
        return FALSE;
    }
}