有没有办法替代Drupal中的默认搜索模块 [英] Is there is any way to replace the default search module in Drupal

查看:131
本文介绍了有没有办法替代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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆