[support] Simple Module Coding Question

Metzler, David metzlerd at evergreen.edu
Wed Jul 30 18:07:43 UTC 2008


I usually just get it using a call to arg(1) in the from rendering
function. 

Make sense? 

-----Original Message-----
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Fred Jones
Sent: Wednesday, July 30, 2008 11:05 AM
To: support at 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/ ]


More information about the support mailing list