function pgarchiveShowArchive($template, $calendar)
{
$tid = pnVarCleanFromInput('tid');
$year = pnVarCleanFromInput('year');
$month = pnVarCleanFromInput('month');
$filter = pnVarCleanFromInput('filter'); //ADD THIS LINE$publications = pnModAPIFunc('pgarchive', 'user', 'getPublications',
array( 'tid' => $tid,
'year' => $year,
'month' => $month,
'filter' => $filter, //ADD THIS LINE
'calendar' => $calendar) );$tid = (int)$args['tid'];
$month = (int)$args['month'];
$year = (int)$args['year'];
$calendar = (isset($args['calendar']) ? $args['calendar'] : false);
$userfilter = (isset($args['filter']) ? $args['filter'] : false); //ADD THIS LINE$filter = array("$baseField:ge:$yearStart-$monthStart-1,$baseField:lt:$yearEnd-$monthEnd-1".",".$userfilter); //APPEND ",".userfilter at endTemplate courtesy of Designs By Darren.