function hook_node_update_index


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 node.api.php hook_node_update_index($node)
cle7 node.api.php hook_node_update_index($node)
elmsmedia7 node.api.php hook_node_update_index($node)
icor7 node.api.php hook_node_update_index($node)
meedjum_blog7 node.api.php hook_node_update_index($node)
mooc7 node.api.php hook_node_update_index($node)

Act on a node being indexed for searching.

This hook is invoked during search indexing, after node_load(), and after the result of node_view() is added as $node->rendered to the node object.


$node: The node being indexed.

Return value

string Additional node information to be indexed.

Related topics

2 functions implement hook_node_update_index()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

comment_node_update_index in modules/comment/comment.module
Implements hook_node_update_index().
search_node_update_index in modules/search/search.module
Implements hook_node_update_index().
5 invocations of hook_node_update_index()
hook_search_execute in modules/search/search.api.php
Execute a search for a set of key words.
hook_update_index in modules/search/search.api.php
Update the search index for this module.
node_search_execute in modules/node/node.module
Implements hook_search_execute().
search_cron in modules/search/search.module
Implements hook_cron().
_node_index_node in modules/node/node.module
Indexes a single node.


modules/node/node.api.php, line 735
Hooks provided by the Node module.


function hook_node_update_index($node) {
  $text = '';
  $comments = db_query('SELECT subject, comment, format FROM {comment} WHERE nid = :nid AND status = :status', array(':nid' => $node->nid, ':status' => COMMENT_PUBLISHED));
  foreach ($comments as $comment) {
    $text .= '<h2>' . check_plain($comment->subject) . '</h2>' . check_markup($comment->comment, $comment->format, '', TRUE);
  return $text;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.