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.
Paramètres
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.
Voir aussi
Sujets associés
6 calls to advagg_s3fs_evaluate_no_rewrite_cssjs()
- advagg_admin_info_form dans ./
advagg.admin.inc - Form builder; Show info about advagg and advagg settings.
- advagg_advagg_get_info_on_files_alter dans ./
advagg.advagg.inc - Implements hook_advagg_get_info_on_files_alter().
- advagg_create_subfile dans ./
advagg.inc - Write CSS parts to disk; used when CSS selectors in one file is > 4096.
- advagg_install_fast_checks dans ./
advagg.install - Run various checks that are fast.
- advagg_load_css_stylesheet dans ./
advagg.inc - Loads the stylesheet and resolves all @import commands.
Fichier
-
./
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;
}
}