hook_menu_alter

Events happening in the community are now at Drupal community events on www.drupal.org.
mallet's picture

replacing drupal 6 core search with views search

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) {

Read more
Subscribe with RSS Syndicate content

Search

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: