function customfilter_cache_clear in Custom filter 6
Same name and namespace in other branches
- 6.2 customfilter.module \customfilter_cache_clear()
- 7.2 customfilter.module \customfilter_cache_clear()
- 7 customfilter.module \customfilter_cache_clear()
7 calls to customfilter_cache_clear()
- customfilter_filter_add_submit in ./
customfilter.admin.inc - Submission callback for the add filter form.
- customfilter_filter_delete_submit in ./
customfilter.admin.inc - Submission callback for the filter delete form.
- customfilter_filter_edit_submit in ./
customfilter.admin.inc - Submission callback for the filter edit form.
- customfilter_import_form_submit in ./
customfilter.admin.inc - Submission callback for the import form.
- customfilter_rules_form_submit in ./
customfilter.admin.inc - Submission callback for the list of replacement rules form.
File
- ./
customfilter.module, line 279 - 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);
}