From 94d859b3b1b2417b80528c0865859038b9576b7d Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 12 Oct 2008 19:00:56 +0000 Subject: #320173 by Dave Reid: Two-word operations in hook_nodeapi no longer being called. --- modules/node/node.module | 4 ++-- modules/search/search.module | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') 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 = '

' . check_plain($node->title) . '

' . $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 -- cgit v1.2.3