Commit bc1c2da4 authored by drumm's avatar drumm

#194579 patch by pwolanin: clear filter cache when allowed HTML tags...

#194579 patch by pwolanin: clear filter cache when allowed HTML tags configuration changes in an input format
parent 584e18ac
......@@ -604,6 +604,8 @@ function filter_admin_configure() {
if (!empty($form)) {
$form = system_settings_form($form);
$form['format'] = array('#type' => 'hidden', '#value' => $format->format);
$form['#submit'][] = 'filter_admin_configure_submit';
}
else {
$form['error'] = array('#value' => t('No settings are available.'));
......@@ -612,6 +614,13 @@ function filter_admin_configure() {
return $form;
}
/**
* Clear the filter's cache when configuration settings are saved.
*/
function filter_admin_configure_submit($form_id, $form_values) {
cache_clear_all($form_values['format'] .':', 'cache_filter', TRUE);
}
/**
* Retrieve a list of input formats.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment