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.
The $result variable is supposed to be passed by reference according to http://api.drupal.org/api/function/custom_url_rewrite_inbound/6
However, that's not happening. Here's a patch to fix.
Comment | File | Size | Author |
---|---|---|---|
custom_url_rewrite_fix.patch | 465 bytes | Steve Dondley | |
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedIn PHP, passing by reference is a property of the function signature, not of the call (please review the PHP manual page about this [1]).
Thus, there is no bug here. You just have to make sure that your implementation of
custome_url_rewrite_inbound()
has the correct signature:[1] http://php.net/manual/en/language.references.pass.php