function quicklink_config_form_submit in Quicklink 7
File
- ./
quicklink.module, line 204
Code
function quicklink_config_form_submit($form, $form_state) {
$fieldsToSave = array(
'quicklink_ignore_admin_paths',
'quicklink_ignore_ajax_links',
'quicklink_ignore_hashes',
'quicklink_ignore_file_ext',
'quicklink_url_patterns_to_ignore',
'quicklink_selector',
'quicklink_allowed_domains',
'quicklink_prefetch_only_paths',
'quicklink_no_load_when_authenticated',
'quicklink_no_load_when_session',
'quicklink_no_load_without_page_cache',
'quicklink_no_load_without_block_cache',
'quicklink_no_load_content_types',
'quicklink_load_polyfill',
'quicklink_enable_debug_mode',
);
foreach ($fieldsToSave as $value) {
$formValue = $form_state['values'][$value];
variable_set($value, $formValue);
}
}