Make the hook_search optional
roychri - June 16, 2008 - 21:16
| Project: | Taxonomy Query Language |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
The TQL module implements the hook_search so that when searching, you can search by taxonomy.
I would like to have the ability to turn it off while keeping other aspect of the TQL module usable.
This hook_search implementation adds the "Taxonomy" tab at the top of the search page.
By turning it off, that tab would disappear.

#1
I propose fulfilling this feature request by using permissions.
Adding a new permissions called "search tql" which you will need to give to the appropriate role if you want to use the search feature.
Here is the patch.