translation_link_alter
custom_url_rewrite_outbound is not a hook, it's a function you can add to settings.php to alter all links generated by Drupal. This function is called from url(). This function is called very frequently (100+ times per page) so performance is critical.
Comments
Comment #1
joachim commented*sigh*
This is because we now have non-hooks in core.php and so the regexp will need rewriting to be a bit more robust.
While I'm at it, the way it gets called could do with tidying up too.
Comment #2
joachim commentedChanged the regexp to check the function begins with 'hook' and make sure we get the comments that belong to the function:
Added whitespace and comments for better maintainability.
Subsequent commits will refactor the code around this.