[development] Using drupal_execute

Greg Knaddison greg.knaddison at gmail.com
Thu Oct 22 20:06:50 UTC 2009


hook_menu elements don't have to be visible as menu choices.

On http://api.drupal.org/api/function/hook_menu see type of MENU_CALLBACK

Regards,
Greg

On Thu, Oct 22, 2009 at 1:56 PM, Jeff Greenberg <jeff at ayendesigns.com> wrote:
> So, the first form is the result of hooking menu() and adding an entry with
> a page callback of drupal_get_form.  The second form has its drupal_get_form
> in the first form's submit routine (which apparently works fine to create
> the form, but not to show it).
>
>
> The docs say that a redirect should really be done by naming the location in
> the form's submit callback...but the first form's submit callback function
> is where I'm already trying to process the second form. If the second
> drupal_get_form needs to be a page callback instead of sitting in the
> function where it is, where do I define that callback? It's not a separate
> menu choice, so it wouldn't be in menu()...?
>
>
> Greg Knaddison wrote:
>
>> Either multistep forms, or more likely you set your form destination
>> to the page where the next form is.
>>
>



-- 
Greg Knaddison | 303-800-5623 | http://growingventuresolutions.com
Cracking Drupal - Learn to protect your Drupal site from hackers
Now available from Wiley http://crackingdrupal.com


More information about the development mailing list