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

CommentFileSizeAuthor
book_nodeapi_1.patch1.11 KBmatteo

Comments

matteo’s picture

Any news on this matter ??

puregin’s picture

Why is node_invoke_nodeapi() called twice (before and after $node->body is appended to $output)?

matteo’s picture

The missing call to nodeapi is the one I added. that call executes the filters that do not use _filter hook, as inline.module does.

puregin’s picture

Matteo, 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

dries’s picture

This has been fixed in Drupal 4.6 and Drupal HEAD. Here, node_invoke_nodeapi() is only called once in book_print().

Anonymous’s picture