diff options
-rw-r--r-- | modules/node/node.module | 4 | ||||
-rw-r--r-- | modules/search/search.module | 4 |
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 |