I usually just get it using a call to arg(1) in the from rendering function.
Make sense?
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Fred Jones Sent: Wednesday, July 30, 2008 11:05 AM To: support@drupal.org Subject: [support] Simple Module Coding Question
I have a menu item whose callback is drupal_get_form, but in the form function, I would like to know what arguments follow my path. What I mean is that my menu path is:
custommod
and the actual URL I am calling is
custommod/3
and in the form I want to be able to see that 3. Is this available in the API? I tried making my callback a custom function and then using drupal_render to render my form at the end of that function, and while then I see the 3, the form came out all messed up--it was out of order it seems. Is this the right way to do it? Or is there something I am missing?
Thanks! -- [ Drupal support list | http://lists.drupal.org/ ]