Home ›
Passing an argument to a Drupal form through hook_menu and use of drupal_get_formPassing an argument to a Drupal form through hook_menu and use of drupal_get_form
Submitted by Benjamin Melançon on December 3, 2009 - 6:47pm
It works. Count how many parts to the menu path there are (text between slashes) and put that number in as a page argument in the array provided for this. (This actually means to grab the /next/ piece of the menu path to use , because the system's counting starts at zero.
Passing Arguments to Form Functions through hook_menu()
http://drupal.org/node/457782
Drupal 6: Passing values to menu items when using drupal_get_form
http://drupal.org/node/205486
Searched words:
drupal menu passing argument to form
Comments
Post new comment