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.
After upgrading module from 7.x-1.3 to 7.x-1.5 it stops working. Links can be added in Block UI but block title doesn't not convert to url.
After looking inside changes I found that hook_preprocess_block()
was changed to hook_process_block()
in #1774180: calling preprocess function in a module should be http://cgit.drupalcode.org/block_titlelink/commit/?id=eef7748ec61ce2277c.... This is not a best solition because it doesn't work for all themes.
I'm using AdaptiveTheme and new version of module doesn't work for this theme.
Comment | File | Size | Author |
---|---|---|---|
#2 | block_titlelink-replace-2554461-2.patch | 518 bytes | Plazik |
Comments
Comment #2
Plazik CreditAttribution: Plazik as a volunteer commentedI've attached patch for this.
Comment #3
adammaloneCould you address the comment in #1774180: calling preprocess function in a module should be about Drupal coding standards and help me understand why we should use hook_preprocess_block instead of hook_process_block?
Comment #4
joshuautley CreditAttribution: joshuautley commented#2 Patch worked for us. We too use the AT theme. Thank you!
Comment #5
webservant316 CreditAttribution: webservant316 commentedPatch worked for me also! Thanks!
Comment #6
stinky CreditAttribution: stinky commentedYay! #2 Patch worked for me. Thanks.
Comment #8
adammaloneThanks for the input and testing, I've committed this to 7.x-1.x.
Comment #9
adammalone