Skip to content

Instantly share code, notes, and snippets.

@cbeer
Created September 23, 2009 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbeer/192283 to your computer and use it in GitHub Desktop.
Save cbeer/192283 to your computer and use it in GitHub Desktop.
class Plugin_Search_Parse_ContentOnly
{
static public function register() {
$objHook = Vault_Hook::getInstance();
$s = __CLASS__;
$o = new $s;
$objHook->register($o);
}
public function search_parse_assemble(&$search) {
$search->parts['fq'][] = 'fedora.contentModel:[* TO *]';
}
}
Plugin_Search_Parse_ContentOnly::register();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment