diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-12-02 06:44:55 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-12-02 06:44:55 +0000 |
commit | 2afd987398ee510e0eb4ebd363e933f32867587e (patch) | |
tree | 32883749eedb544b94ddd6b2ed378fba1fb45d76 | |
parent | cc508ad2f05a311938d8ff850660a9f65e741296 (diff) | |
download | brdo-2afd987398ee510e0eb4ebd363e933f32867587e.tar.gz brdo-2afd987398ee510e0eb4ebd363e933f32867587e.tar.bz2 |
Search: indexing should invoke nodeapi to catch all user-visible data (e.g. file attachment names).
-rw-r--r-- | modules/node.module | 3 | ||||
-rw-r--r-- | modules/node/node.module | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/node.module b/modules/node.module index dc4e3638c..c761615bc 100644 --- a/modules/node.module +++ b/modules/node.module @@ -1567,12 +1567,15 @@ function node_update_index() { // chances of this happening are very small. variable_set('node_cron_last', max($last_comment, $node->changed, $node->created)); + // Get node output (filtered and with module-specific fields). if (node_hook($node, 'view')) { node_invoke($node, 'view', false, false); } else { $node = node_prepare($node, false); } + // Allow modules to change $node->body before viewing. + node_invoke_nodeapi($node, 'view', false, false); $text = '<h1>'. drupal_specialchars($node->title) .'</h1>'. $node->body; diff --git a/modules/node/node.module b/modules/node/node.module index dc4e3638c..c761615bc 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1567,12 +1567,15 @@ function node_update_index() { // chances of this happening are very small. variable_set('node_cron_last', max($last_comment, $node->changed, $node->created)); + // Get node output (filtered and with module-specific fields). if (node_hook($node, 'view')) { node_invoke($node, 'view', false, false); } else { $node = node_prepare($node, false); } + // Allow modules to change $node->body before viewing. + node_invoke_nodeapi($node, 'view', false, false); $text = '<h1>'. drupal_specialchars($node->title) .'</h1>'. $node->body; |