Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
taxonomy_node_update_index() does not exist in Drupal 7.
node_search_execute() attempts to call it.
That line is not doing anything should be removed. Presumably the taxonomy terms have already been added in the node_view() step above?
// Fetch terms for snippet.
$node->rendered .= ' ' . module_invoke('taxonomy', 'node_update_index', $node);
Here's a patch...
Comment | File | Size | Author |
---|---|---|---|
lesscruft.patch | 658 bytes | jhodgdon | |
Comments
Comment #1
jhodgdonComment #2
Dries CreditAttribution: Dries commentedNot sure if it can be removed, but there is another reference to it from
./modules/node/node.api.php
:* - comment_node_update_index() and taxonomy_node_update_index() are called
Comment #3
jhodgdonI fixed that on another patch. (searching)...
http://drupal.org/node/708974#comment-2582702
Comment #4
Dries CreditAttribution: Dries commentedI committed the patch in #708974: provide an overview of ex-hook_nodeapi operations so that takes care of #2.
Comment #5
Dries CreditAttribution: Dries commentedAfter poking around the code, I can confirm that this was cruft. Field API takes care of this now in entity_load(). Committed to CVS HEAD. Thanks.