#194579 patch by pwolanin: clear filter cache when allowed HTML tags configuration changes in an input format
parent
152322daca
commit
343e4085bf
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue