views:

69

answers:

2

I need to override the 'node' module's 'node_search' hook in my custom module named 'tester'. I am trying to write the hook in tester.module with the name - tester_node_search, but it just would not work.

I have searched a lot over the internet but am not able to find any concrete solution. Can somebody please help...

+1  A: 

the hook is named hook_search, so your module function should be "tester_search" instead of "tester_node_search".

carles
A: 

Hi carles, Thanks a lot for the quick response. I did try this option before but for some reason, the $op comes up as 'name' instead of 'search'. Any leads ?

http://api.drupal.org/api/function/hook_search/6
mongolito404