summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-22 11:37:07 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-22 11:37:07 +0000
commit9c69a0d811b59157fead38c9b5c482b5b1ba51d0 (patch)
tree6076e2bbbf4cc457e9bb597bb1536f2382af0102
parent7f5afdeedb20400315a02afa2d91d31ed8fc69eb (diff)
downloadbrdo-9c69a0d811b59157fead38c9b5c482b5b1ba51d0.tar.gz
brdo-9c69a0d811b59157fead38c9b5c482b5b1ba51d0.tar.bz2
- Patch #448860 by recidive: updated the search module documentation.
-rw-r--r--modules/search/search.module13
1 files changed, 6 insertions, 7 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index 446ab30b9..c7748b2b0 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -1026,15 +1026,14 @@ function search_get_keys() {
* for all of the search features to work.
*
* There are three ways to interact with the search system:
- * - Specifically for searching nodes, you can implement node('update_index')
- * and node('search_result'). However, note that the search system already
+ * - Specifically for searching nodes, you can implement hook_node_update_index()
+ * and hook_node_search_result(). However, note that the search system already
* indexes all visible output of a node, i.e. everything displayed normally
- * by hook_view() and hook_node('view'). This is usually sufficient.
- * You should only use this mechanism if you want additional, non-visible data
- * to be indexed.
+ * by hook_view() and hook_node_view(). This is usually sufficient. You should
+ * only use this mechanism if you want additional, non-visible data to be
+ * indexed.
* - Implement hook_search(). This will create a search tab for your module on
- * the /search page with a simple keyword search form. You may optionally
- * implement hook_search_item() to customize the display of your results.
+ * the /search page with a simple keyword search form.
* - Implement hook_update_index(). This allows your module to use Drupal's
* HTML indexing mechanism for searching full text efficiently.
*