将自定义模块创建的内容添加到 drupal 搜索索引 [英] Adding content created by custom module to drupal search index
本文介绍了将自定义模块创建的内容添加到 drupal 搜索索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开发了一个模块,可以在不使用 CCK 的情况下为我的网站创建内容.数据将保存在除 Drupal 的默认表之外的不同表中.我的要求是,如何让 Drupal 为我的自定义模块创建的内容建立索引?
I have developed a module to create content for my site without using CCK. The data will be saved in different tables other than the default tables of Drupal. My requirement is, how can i make Drupal to index the content created by my custom module?
推荐答案
你必须实现 hook_search 在为自定义内容编制索引的模块中.
You will have to implement hook_search in your module that indexes your custom content.
这篇关于将自定义模块创建的内容添加到 drupal 搜索索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文