将自定义模块创建的内容添加到drupal搜索索引 [英] Adding content created by custom module to drupal search index

查看:97
本文介绍了将自定义模块创建的内容添加到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?

推荐答案

您将必须实现<你的模块中的一个href =http://api.drupal.org/api/drupal/developer-hooks--core.php/function/hook_search/6 =nofollow> hook_search 您的自定义内容。

You will have to implement hook_search in your module that indexes your custom content.

这篇关于将自定义模块创建的内容添加到drupal搜索索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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