Closed (fixed)
Project:
Drupal core
Component:
book.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Mar 2005 at 13:22 UTC
Updated:
19 May 2005 at 09:15 UTC
Filter_nodeapi is not recalled when printing a book.
Here is a patch that solves the problem.
You can easiliy reproduce the problem by installing inline.module, where images are regularly printed when viewing the pages, while [inline] tag is not rendered when printing a printer-friendly page.
Matteo
| Comment | File | Size | Author |
|---|---|---|---|
| book_nodeapi_1.patch | 1.11 KB | matteo |
Comments
Comment #1
matteo commentedAny news on this matter ??
Comment #2
puregin commentedWhy is node_invoke_nodeapi() called twice (before and after $node->body is appended to $output)?
Comment #3
matteo commentedThe missing call to nodeapi is the one I added. that call executes the filters that do not use _filter hook, as inline.module does.
Comment #4
puregin commentedMatteo, I agree that the call should be made in both book_print and book_print_recurse
(this is done in the current CVS version, no?)
I just don't see why you're calling it twice in book_print in your patch.
Sorry if I'm being dense - I'm not yet "in deep" with the code :)
Regards, Djun
Comment #5
dries commentedThis has been fixed in Drupal 4.6 and Drupal HEAD. Here,
node_invoke_nodeapi()is only called once inbook_print().Comment #6
(not verified) commented