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.
Looking at content_view():
function content_view(&$node, $teaser = FALSE, $page = FALSE) {
$node->body = implode(_content_field_invoke('view', $node, $teaser, $page));
$node->teaser = implode(_content_field_invoke('view', $node, $teaser, $page));
$node->readmore = ($node->body != $node->teaser);
}
Shouldn't that be:
function content_view(&$node, $teaser = FALSE, $page = FALSE) {
$node->body = implode(_content_field_invoke('view', $node, FALSE, $page));
$node->teaser = implode(_content_field_invoke('view', $node, TRUE, $page));
$node->readmore = ($node->body != $node->teaser);
}
Comments
Comment #1
JonBob CreditAttribution: JonBob commentedTeaser handling has to be revamped in general, but this patch is more correct than the current behavior. Applied.
Comment #2
(not verified) CreditAttribution: commented