Needs review
Project:
Bandwidth API
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Jul 2009 at 21:11 UTC
Updated:
24 Oct 2009 at 06:08 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 530314-url-alter.patch | 1.31 KB | dave reid |
Comments
Comment #1
dave reidPlease review the attached patch.
Comment #2
dave reidComment #3
yrocq commentedCommited in the CVS. Thanks !
I will add a note in the next release, advising to use the module url_alter.
Comment #4
dave reidThanks very much! I really appreciate it!
Comment #6
dave reidFollow-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)!