Commit 94d859b3 authored by webchick's avatar webchick

#320173 by Dave Reid: Two-word operations in hook_nodeapi no longer being called.

parent 81b04e90
......@@ -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;
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment