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.
Would it be possible to add a hook for modifying $tree before node->body is loaded via book_export_traverse() in print.pages.inc.
Something like $tree = module_invoke_all('print_modify_tree', &$tree, $nid);
so that tree data could be easily manipulated before book body is loaded. That way exclusion/inclusion of nodes would be easy for third party modules extending your module.
Thanks for your module!
Comments
Comment #1
jcnventura CreditAttribution: jcnventura commentedMoving to the book module.