You are here

function customfilter_cache_clear in Custom filter 7.2

Same name and namespace in other branches
  1. 6.2 customfilter.module \customfilter_cache_clear()
  2. 6 customfilter.module \customfilter_cache_clear()
  3. 7 customfilter.module \customfilter_cache_clear()

Clear the cache

@todo Please document this function.

7 calls to customfilter_cache_clear()
customfilter_filter_add_submit in ./customfilter.module
Submission callback for the add filter form.
customfilter_filter_delete_submit in ./customfilter.module
Submission callback for the filter delete form.
customfilter_filter_edit_submit in ./customfilter.module
Submission callback for the filter edit form.
customfilter_import_form_submit in ./customfilter.module
Submission callback for the import form.
customfilter_rules_form_submit in ./customfilter.module
Submission callback for the list of replacement rules form.

... See full list

File

./customfilter.module, line 359
Allows the users with the right permission to define custom filters.

Code

function customfilter_cache_clear($fid = NULL) {
  cache_clear_all('filters', 'cache_customfilter');
  cache_clear_all(isset($fid) ? "rules:{$fid}" : 'rules', 'cache_customfilter', TRUE);
}