summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-12 19:00:56 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-12 19:00:56 +0000
commit94d859b3b1b2417b80528c0865859038b9576b7d (patch)
treea3b06bc9ba351ff5d2f8a882f0ac74f4b98ce34a /modules
parent81b04e90cf843751d1930ba72ec010650af9747b (diff)
downloadbrdo-94d859b3b1b2417b80528c0865859038b9576b7d.tar.gz
brdo-94d859b3b1b2417b80528c0865859038b9576b7d.tar.bz2
#320173 by Dave Reid: Two-word operations in hook_nodeapi no longer being called.
Diffstat (limited to 'modules')
-rw-r--r--modules/node/node.module4
-rw-r--r--modules/search/search.module4
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index eeab96c83..15e73b1a2 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1355,7 +1355,7 @@ function node_search($op = 'search', $keys = NULL) {
// Fetch terms for snippet.
$node->body .= module_invoke('taxonomy', 'nodeapi', $node, 'update_index');
- $extra = node_invoke_nodeapi($node, 'search result');
+ $extra = node_invoke_nodeapi($node, 'search_result');
$results[] = array(
'link' => url('node/' . $item->sid, array('absolute' => TRUE)),
@@ -1898,7 +1898,7 @@ function _node_index_node($node) {
$text = '<h1>' . check_plain($node->title) . '</h1>' . $node->body;
// Fetch extra data normally not visible
- $extra = node_invoke_nodeapi($node, 'update index');
+ $extra = node_invoke_nodeapi($node, 'update_index');
foreach ($extra as $t) {
$text .= $t;
}
diff --git a/modules/search/search.module b/modules/search/search.module
index 8be526249..6846f8f65 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -995,8 +995,8 @@ 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 nodeapi('update index')
- * and nodeapi('search result'). However, note that the search system already
+ * - Specifically for searching nodes, you can implement nodeapi('update_index')
+ * and nodeapi('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_nodeapi('view'). This is usually sufficient.
* You should only use this mechanism if you want additional, non-visible data