Because your module implements custom_url_rewrite_outbound and it is not a hook, if another module defines the function or someone has it in their settings.php, it can conflict and cause fatal PHP errors. I've created the url_alter module to help convert this into a hook that modules can use, but I also want to help provide a fix that will prevent the PHP fatal errors if the function is already defined.

CommentFileSizeAuthor
#1 530314-url-alter.patch1.31 KBdave reid

Comments

dave reid’s picture

StatusFileSize
new1.31 KB

Please review the attached patch.

dave reid’s picture

Status: Active » Needs review
yrocq’s picture

Assigned: Unassigned » yrocq
Status: Needs review » Fixed

Commited in the CVS. Thanks !

I will add a note in the next release, advising to use the module url_alter.

dave reid’s picture

Thanks very much! I really appreciate it!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dave reid’s picture

Status: Closed (fixed) » Needs review

Follow-up notice that I'm going to be committing a new version of the URL alter module that changes the hooks to hook_url_inbound_alter() and hook_url_outbound_alter(). This is for consistency with the hooks that were accepted into Drupal 7 (#320331: Turn custom_url_rewrite_inbound and custom_url_rewrite_outbound into hooks)!

Please update bandwidth_url_alter_outbound() to bandwidth_url_outbound_alter() as soon as you can since I'm creating the new URL alter release tomorrow. Plus this will make your module one-step closer to being Drupal 7 compatible (then you can even drop all the custom_url_rewrite juggling)!