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.
In Disqus module there is a hook_node_load being used. In this hook node load there is a url being created. But the url triggers another hook. Hook outbound alter.
We have some custom code which uses hook outbound alter which uses node_access which in turn triggers an infinite loop.
My patch builds the url differently.
What is the proper way of using the outbound alter. If you cant use node_load or node_access?
Comment | File | Size | Author |
---|---|---|---|
#2 | node_load_2849382-2.patch | 1010 bytes | ruudvanoijen |
Comments
Comment #2
ruudvanoijen CreditAttribution: ruudvanoijen at ezCompany commentedthe patch
Comment #3
ruudvanoijen CreditAttribution: ruudvanoijen at ezCompany commentedhttps://api.drupal.org/api/drupal/modules!node!node.api.php/function/hoo...
For some comments about hook_node_load
Comment #4
askibinski CreditAttribution: askibinski at ezCompany commentedComment #5
askibinski CreditAttribution: askibinski at iO commentedComment #6
paulvandenburg CreditAttribution: paulvandenburg at iO commentedReviewed, has been running in production for over a year.
Comment #7
JoshaHubbers CreditAttribution: JoshaHubbers at iO commentedThis patch is only for the 1.12 version of this module, and purely intended for use in make files. So please ignore this patch...
Comment #8
DamienMcKennaComment #9
DamienMcKennaCommitted. Thank you.