Hi all
I am trying to replace drupals core search with my own views search. the search in views work but only if you type its exact url would you see the views search. and this is where I am having hard time putting the two together.
I am using the function hook_menu_alter to replace the drupal core search with my views search path. heres the code thats on my custom module file:
<?php
function searchy_perm() {
return array('access searchy', 'administer searchy');
} // function searchy_perm
function searchy_menu_alter(&$callbacks) {
// Example - disable the page at node/add
$callbacks['search/node']['mynameofview'] = FALSE;
}
?>
Ive been told that my callbacks might be incorrect also on the drupal forums? or if anyone can please give me an example to what I should put in my callback?
-viper