Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This code also defines this documentation page http://api.drupal.org/api/group/search/7 so the patch also fixes that. Since hook_search_execute() can still be used, this is the only documentation change.
Good catch. I'm not sure I am completely happy with the solution, because it's not just hook_search_info() that would be used to implement searching. Maybe it should say "without hook_search_info() and related hooks". ?
From my reading of the code, you could - and likely would - use hook_search_execute with your custom tab with extra form fields, and i don't know that there are any other hooks tightly coupled to hook_search_info(), so the five character patch may do it.
Comments
Comment #1
mlncn CreditAttribution: mlncn commentedThis code also defines this documentation page http://api.drupal.org/api/group/search/7 so the patch also fixes that. Since hook_search_execute() can still be used, this is the only documentation change.
Comment #2
mlncn CreditAttribution: mlncn commentedwith a patch with content this time!
Comment #3
jhodgdonGood catch. I'm not sure I am completely happy with the solution, because it's not just hook_search_info() that would be used to implement searching. Maybe it should say "without hook_search_info() and related hooks". ?
Comment #4
andrew.elvis CreditAttribution: andrew.elvis commentedI guess that works.
Comment #5
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. If we want to refine the documentation, feel free to re-open the issue. No problemo. :)
Comment #6
mlncn CreditAttribution: mlncn commentedFrom my reading of the code, you could - and likely would - use hook_search_execute with your custom tab with extra form fields, and i don't know that there are any other hooks tightly coupled to hook_search_info(), so the five character patch may do it.
Comment #7
mlncn CreditAttribution: mlncn commented