function customfilter_delete_filter in Custom filter 5
2 calls to customfilter_delete_filter()
- customfilter_delete_set in ./
customfilter.module - customfilter_filter_delete_submit in ./
customfilter.module - Delete the selected filter.
File
- ./
customfilter.module, line 754
Code
function customfilter_delete_filter($fid) {
$result = db_query("SELECT * FROM {customfilter_filter} where parentid = %d", $fid);
while ($filter = db_fetch_object($result)) {
customfilter_delete_filter($filter->fid);
}
db_query("DELETE FROM {customfilter_filter} WHERE fid = %d", $fid);
}