Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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 ?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.