<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>I agree. Another option is to use hook_form_alter to add a submission handler that checks for a path that already exists. It would be more work, but probably a bit more user friendly.<BR> </DIV>
<P><FONT face="bookman old style, new york, times, serif" color=#ff007f size=4><EM><STRONG>Nancy</STRONG></EM></FONT></P>
<P> </P>
<P><FONT face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Adam B. Ross <grayside@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> development@drupal.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Mon, November 22, 2010 9:55:41 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [development] Protecting URLS From Path<BR></FONT><BR>hook_menu_alter() sounds right. You could also use some sort of<BR>detection mechanism in hook_menu_alter() to report that the path was<BR>overridden.<BR><BR>I am a firm believer that this sort of thing should be handled by<BR>negotiation between module maintainers and documentation, rather than<BR>by beginning a programmatic war for possession of namespaces.<BR><BR>On Mon, Nov 22, 2010 at 6:15 PM, nan wich <<A href="mailto:nan_wich@bellsouth.net" ymailto="mailto:nan_wich@bellsouth.net">nan_wich@bellsouth.net</A>> wrote:<BR>> My first thought would be a hook_menu_alter to
set it back to the right<BR>> path. Granted most of the time it will be unnecessary overhead, but if the<BR>> path is critical, it should work.<BR>><BR>><BR>> Nancy<BR>><BR>><BR>><BR>> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King,<BR>> Jr.<BR>><BR>> ________________________________<BR>> From: David Metzler <<A href="mailto:metzler.dl@gmail.com" ymailto="mailto:metzler.dl@gmail.com">metzler.dl@gmail.com</A>><BR>> To: <A href="mailto:development@drupal.org" ymailto="mailto:development@drupal.org">development@drupal.org</A><BR>> Sent: Mon, November 22, 2010 8:24:25 PM<BR>> Subject: [development] Protecting URLS From Path<BR>><BR>> I maintain an SSO module that has an alternate login path (cas instead of<BR>> user/login). I recently got a post asking if there was a way for me to<BR>> programmatically protect it from being overridden.<BR>><BR>> A user
had created a page describing the single sign on process and given it<BR>> the same URL as my menu_hook was registered, thus overriding the behavior<BR>> provided by my module.<BR>><BR>> So I thought I'd ask. Anyone know of a way for me to ensure that other menu<BR>> paths (specifically aliases) cannot override the one provided by my module?<BR>><BR>> Dave<BR></DIV></DIV></div></body></html>