#194579 patch by pwolanin: clear filter cache when allowed HTML tags configuration changes in an input format

6.x
Gábor Hojtsy 2007-12-21 11:58:59 +00:00
parent 152322daca
commit 343e4085bf
1 changed files with 9 additions and 1 deletions

View File

@ -314,10 +314,18 @@ function filter_admin_configure(&$form_state, $format) {
else {
$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;
}
/**
* 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.
*/