backdrop-contrib / print

Generate printer-friendly, PDF, EPub, and/or email versions of site content.
GNU General Public License v2.0
1 stars 4 forks source link

Function `block_get_blocks_by_region` is invalid #4

Open laryn opened 3 years ago

laryn commented 3 years ago

In theme_print_footer the block_get_blocks_by_region function is no longer valid.

herbdool commented 1 year ago

Probably should just get rid of this option. There is no fixed "footer" region in Backdrop; everything is in a layout and a layout may or may not have a region named footer.

herbdool commented 1 year ago

Maybe it would be nice to create a layout with the context of print/% and then have an option in this module to use that for displaying instead of only showing the node content. That would be more elegant than what it does now.

I think in D7 it was using block_get_blocks_by_region() to get blocks from some special regions "Print Only Sidebar", "Print Only Content" and so on.