function advagg_admin_recreate_htaccess in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7 includes/admin.inc \advagg_admin_recreate_htaccess()
Rebuild htaccess files.
1 call to advagg_admin_recreate_htaccess()
- advagg_admin_settings_form_submit in ./
advagg.admin.inc - Validate form values. Used to unset variables before they get saved.
1 string reference to 'advagg_admin_recreate_htaccess'
- advagg_admin_settings_form in ./
advagg.admin.inc - Form builder; Configure advagg settings.
File
- ./
advagg.admin.inc, line 676 - Admin page callbacks for the advanced CSS/JS aggregation module.
Code
function advagg_admin_recreate_htaccess() {
list($css_path, $js_path) = advagg_get_root_files_dir();
$css_path .= '/.htaccess';
$js_path .= '/.htaccess';
file_delete($css_path);
advagg_htaccess_check_generate($css_path, TRUE);
file_delete($js_path);
advagg_htaccess_check_generate($js_path, TRUE);
drupal_set_message(t('Advanced CSS/JS Aggregation htaccess files rebuilt.'));
}