PURL does exactly this. See <a href="http://drupal.org/node/292932#comment-1669856">http://drupal.org/node/292932#comment-1669856</a> for example.<div><br clear="all">--<br>Kyle Mathews<br><br>Blog: <a href="http://kyle.mathews2000.com/blog">kyle.mathews2000.com/blog</a><br>
Twitter: <a href="http://twitter.com/kylemathews">http://twitter.com/kylemathews</a><br>Company: <a href="http://eduglu.com">http://eduglu.com</a><br>
<br><br><div class="gmail_quote">On Mon, Oct 4, 2010 at 10:11 PM, David Cohen <span dir="ltr"><<a href="mailto:drupal@dave-cohen.com">drupal@dave-cohen.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have a module which implements custom_url_rewrite_outbound() (in D7,<br>
will implement hook_url_outbound_alter()).<br>
<br>
A user of my module has requested a change; that I honor a special<br>
option which changes the behavior of my url alter. For details see<br>
<a href="http://drupal.org/node/931660" target="_blank">http://drupal.org/node/931660</a>.<br>
<br>
So to be clear, this would be a new option passed in the $option array<br>
to Drupal's url() and l() functions. An option not documented on<br>
<a href="http://api.drupal.org" target="_blank">api.drupal.org</a>, but passed through and honored by my module.<br>
<br>
I actually like the proposed patch, and want to include it in the<br>
module. I just wanted to ask here first: does anyone see a problem with<br>
me using the url $options this way? Do any other modules do this?<br>
<br>
Thanks,<br>
<br>
-Dave<br>
</blockquote></div><br></div>