有没有办法替代Drupal中的默认搜索模块 [英] Is there is any way to replace the default search module in Drupal
问题描述
我打算在drupal中创建一个自定义搜索模块。我的目标是替换现有的搜索功能(即默认搜索)是否有任何方法来覆盖默认的搜索功能...
i am planning to create an custom search module in drupal .my aim is to replace the existing search feature (ie the default search ) is there is any way to override the default search feature ...
推荐答案
您可以实现 hook_search 并创建自己的搜索,您可以使用自定义搜索设置默认搜索和/或禁用标准的搜索。
You can implement hook_search and create your own search, and you can use Custom Search to set your default search and/or disable the standard ones.
您还可以使用 Forms API 和 hook_menu 并执行完全自定义的操作。
You can also just use the Forms API and hook_menu and do something completely custom.
同时查看接受的答案< a href =https://stackoverflow.com/questions/3 426366 / search-hook-for-filtering-results>搜索钩子过滤结果另一个想法。
Also check out the accepted answer to Search hook for filtering results? for another idea.
这篇关于有没有办法替代Drupal中的默认搜索模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!