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.
The book.module did not properly run the book->body through check_output when displaying the book list. Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#4 | bookrender-teaser.patch | 823 bytes | JonathanS |
bookrender.patch | 716 bytes | ccourtne | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedNot sure.
First, you have to invoke
check_output()
with the correct filter setting.Secondly,
book_render()
callsbook_content()
, andbook_content()
callsnode_prepare()
which in turn callscheck_output()
along with the proper filter settings.Comment #2
ccourtne CreditAttribution: ccourtne commentedbook_render doesn't actually call book_content. Maybe it should be it doesn't at this time. Book_render is used to display the list of books with their description. The only thing that calls it is the url /books.
Comment #3
Dries CreditAttribution: Dries commentedNo,
book_render()
does callbook_content()
. Did you modify your copy of the book.module?Comment #4
JonathanS CreditAttribution: JonathanS commentedbook_render()
does callbook_content()
, but it fails to set$teaser = TRUE
, socheck_output()
gets run on the body rather than the teaser. See attached patch for a fix.Comment #5
Dries CreditAttribution: Dries commentedRight! Committed a slightly modified version of your patch to HEAD. Thanks.
Comment #6
Dries CreditAttribution: Dries commentedComment #7
(not verified) CreditAttribution: commented