Commit 343e4085 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#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 152322da
...@@ -314,10 +314,18 @@ function filter_admin_configure(&$form_state, $format) { ...@@ -314,10 +314,18 @@ function filter_admin_configure(&$form_state, $format) {
else { else {
$form['error'] = array('#value' => t('No settings are available.')); $form['error'] = array('#value' => t('No settings are available.'));
} }
$form['format'] = array('#type' => 'hidden', '#value' => $format->format);
$form['#submit'][] = 'filter_admin_configure_submit';
return $form; return $form;
} }
/**
* Clear the filter's cache when configuration settings are saved.
*/
function filter_admin_configure_submit($form, &$form_state) {
cache_clear_all($form_state['values']['format'] .':', 'cache_filter', TRUE);
}
/** /**
* Menu callback; display form for ordering filters for a format. * Menu callback; display form for ordering filters for a format.
*/ */
......
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