I have a taxonomy page where different view panes of a single view are displayed. I want to pass contextual filter to only kind of View pane. I wrote this code but this passes the contextual filter to all the view panes on the page. How can I pass contextual filter to a single specific view pane? Thank you for your time.
function intrakicalendarrss_views_pre_view(&$view, &$display_id, &$args) {
$arg0 = arg(0);
$arg1 = arg(1);
$arg2 = arg(2);
if($view->name = 'current_event_list') {
if($arg0 == 'taxonomy' && $arg1 == 'term' && ($arg2 == 1 || $arg2 == 2)) {
$Cfilter = $arg2;
$args[0] = $Cfilter;
}
}
}