Adding settings for URL prefix and random URI part
fuerst - March 18, 2008 - 11:34
| Project: | URL Access |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Description
While using this module I wanted to (1) replace the default URL prefix protected by a free configurable string and (2) use a shorter random URI part because the UUID with 37 characters is too long for sending to customers etc.
May be my patch is useful for the public so I attached it here. It enhances url_access by the following features:
- Choose how to generate the random part of the URI: using the
UUID()function of MySQL or theuser_password()function of Drupal. - Because the
UUID()function is available from MySQL 4.1.2 on only theuser_password()function will be used as a fallback if UUID() is not available. - The URL path prefix for protected nodes which is by default protected is configurable.
- You may enter an additional message for the 403 page which unauthorized users will see when viewing the node without using the protected URL.
| Attachment | Size |
|---|---|
| settings.patch | 5.1 KB |

#1
#2
Thanks for the patch. A few comments:
--Andrew
#3
#4
it also looks like there's some white space issues with tabs being used rather than spaces.
#5
I'm marking as closed to clean up my queue as I'm not maintaining this module any more. Feel free to take over this project if you're still using it.