[support] Simple Module Coding Question

Greg Knaddison - GVS Greg at GrowingVentureSolutions.com
Wed Jul 30 18:18:40 UTC 2008


On Wed, Jul 30, 2008 at 12:07 PM, Metzler, David <metzlerd at evergreen.edu> wrote:
> I usually just get it using a call to arg(1) in the from rendering
> function.
>
> Make sense?
>

This works as long as your form is always on that exact URL.  An
alternative, if you want your form to be more flexible, is to use
arg(1) as a 'page argument' in the hook_menu definition and then add
it as a variable in your custommod_form_name($var_here) function
declaration.


-- 
Greg Knaddison
Denver, CO | http://knaddison.com | 303-800-5623
Growing Venture Solutions, LLC | http://growingventuresolutions.com


More information about the support mailing list