Commit 6cf4f6b1 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#177829 by jjeff: search indexing did not invoke the nodeapi alter hook, so...

#177829 by jjeff: search indexing did not invoke the nodeapi alter hook, so what the user seen and what was indexed was different
parent cd517f16
......@@ -1638,6 +1638,9 @@ function node_update_index() {
$node->build_mode = NODE_BUILD_SEARCH_INDEX;
$node = node_build_content($node, FALSE, FALSE);
$node->body = drupal_render($node->content);
// Allow modules to modify the fully-built node.
node_invoke_nodeapi($node, 'alter');
$text = '<h1>'. check_plain($node->title) .'</h1>'. $node->body;
......
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