function boost_admin_htaccess_page_submit in Boost 6
Submit handler for boost_admin_htaccess_page
1 string reference to 'boost_admin_htaccess_page_submit'
- boost_admin_htaccess_page in ./
boost.admin.inc - Form builder; Displays Boost's htaccess generation page.
File
- ./
boost.admin.inc, line 1229 - All the code for the Boost module's administrative interface.
Code
function boost_admin_htaccess_page_submit($form, &$form_state) {
// Save Settings
$boost_autoupdate_robots_txt = $form_state['values']['boost_autoupdate_robots_txt'];
$boost_autoupdate_htaccess = $form_state['values']['boost_autoupdate_htaccess'];
variable_set('boost_autoupdate_robots_txt', $boost_autoupdate_robots_txt);
variable_set('boost_autoupdate_htaccess', $boost_autoupdate_htaccess);
// Act on settings
if (!empty($boost_autoupdate_robots_txt)) {
boost_update_robots_txt(variable_get('boost_enabled', CACHE_NORMAL));
}
if (!empty($boost_autoupdate_htaccess)) {
boost_update_htaccess(variable_get('boost_enabled', CACHE_NORMAL));
}
}