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