How to put two filters in hooks/tablename.php

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
davebryan
Posts: 13
Joined: 2015-11-06 16:19

How to put two filters in hooks/tablename.php

Post by davebryan » 2017-01-27 18:00

I have a table "video_detail" and want to use the filter function in hooks/video_detail.php to apply two filters. A single addFilter works fine. However, the following code did not work:

function video_detail_init(&$options, $memberInfo, &$args){
/* Apply a default filter only if no filter is already applied by the user */
if(!$_POST['FilterField'][1] && !$_GET['FilterField'][1]){
addFilter(1, 'and', 7, 'equal-to', 'Not Yet Verified', 'and', 1, 'and', 9, 'equal-to', 'Qual Approved');

I tried an addFilter(2, ... but that did not work either. I also tried multiple addFilter lines, but, as expected, the second one over rides the first one. Is there a way to combine multiple filters in one addFilter line?
Thanks

Post Reply