Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
2afd9873
Commit
2afd9873
authored
Dec 02, 2004
by
Steven Wittens
Browse files
Search: indexing should invoke nodeapi to catch all user-visible data (e.g. file attachment names).
parent
cc508ad2
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
2afd9873
...
...
@@ -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
;
...
...
modules/node/node.module
View file @
2afd9873
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment