module_invoke() doesn't allow passing nodes by reference. Passing by reference allows altering of nodes before the diff is performed.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | diff-1310420-passby-ref.patch | 877 bytes | skwashd |
module_invoke() doesn't allow passing nodes by reference. Passing by reference allows altering of nodes before the diff is performed.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | diff-1310420-passby-ref.patch | 877 bytes | skwashd |
Comments
Comment #1
skwashd commentedThe attached patch passes the nodes by reference.
Comment #2
skwashd commentedfixing status
Comment #3
decipheredReviewed and tested.
As mentioned via IRC, only change I would make would be to use a
drupal_alter()instead, but as that would break the existing API I understand not doing so.Cheers,
Deciphered.
Comment #4
realityloop commentedThanks skwashd/Deciphered, commited.