[drupal-devel] generate random urls

Jonathan Chaffer jchaffer at structureinteractive.com
Tue Mar 29 17:30:03 UTC 2005

On Mar 29, 2005, at 11:33 AM, Moshe Weitzman wrote:

> Maykel Moya wrote:
>> I'm trying to make the glossary have a page per letter 'glossary/a',
>> 'glossary/b' etc...
>> I'd even like to have every link available before hand, even if isn't
>> content to a given letter.
>> So a need glossary/[0-9a-z]. Is there other way to achieve this than 
>> to
>> have a very big array with every case inside the hook_menu?
> yes - you just need a handler for 'glossary'. additional arguments get 
> passed automatically. so your function might be:
> function glossary_page($letter = NULL)

More information here:

Jonathan Chaffer
Applications Developer, structure:interactive
(616) 364-7423    http://www.structureinteractive.com/

More information about the drupal-devel mailing list