I am hooking to the search module, with this code :
function mymodule_search_info() {
return array(
'title' => 'Custom tab search',
'path' => 'custom-search',
'conditions_callback' => '_mymodule_search_conditions',
);
}
However I need more than one tab, and AFAIK can't use the same approach more than once in the module, and I don't like the idea of having to build one module per search type.
Considering that I can't return more than one custom search in the hook_search_info hook, the question is, what is the best approach ?