Skip to content

Instantly share code, notes, and snippets.

@ringmaster
Created July 31, 2012 19:08
Show Gist options
  • Save ringmaster/3219593 to your computer and use it in GitHub Desktop.
Save ringmaster/3219593 to your computer and use it in GitHub Desktop.
Filter on postinfo debate == '0' and content type == 'entry'
public function act_display($paramarray = array( 'user_filters'=> array() )) {
$user_filters = array('all:info' => array( 'debate' => '0' ), 'content_type' => 'entry');
$paramarray['user_filters'] = array_merge($user_filters, $paramarray['user_filters']);
parent::act_display( $paramarray );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment