See http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_me...
Integers in page arguments correspond to the index of %placeholder in the URL, counting from 0
0 = accountant 1 = edit 2 = registry 3 = % (whatever is present in the URL)
In your example, the URL accountant/edit/registry/foo will return drupal_get_form('accountant_registry_form', 'foo') which calls accountant_registry_form($form_state, 'foo').
On Mon, Apr 11, 2011 at 8:19 PM, Austin Einter austin.einter@gmail.comwrote:
Hi All I am trying to understand, what this 'page arguments' is.
$items['accountant/edit/registry/%'] = array( 'type' => MENU_CALLBACK, 'title' => 'Create Registry', 'page callback' => 'drupal_get_form', 'page arguments' => array('accountant_registry_form',3), 'access callback' => 'user_access', 'access arguments' => array('accountant create registry'), );
Page arugments contains a function name 'accountant_registry_form' and 3 number of arguments. So the function 'accountant_registry_form' is automatically called, or need to be called from my custom module. Will there be 3 argumenets, if so what are these 3 arguments and where it is mentioned.
Can somebody give me a high level explaination and point me to a right link/document to understand this.
Thanks Austin
On Tue, Apr 12, 2011 at 7:09 AM, Austin Einter austin.einter@gmail.comwrote:
Hi All I have a search text field, and a search button. If user presss search button, I redirect to a new page and 'page callback' function invoked.
I wanted the data entered in search text field (that was present in form of previous page) should be available in 'page callback' function.
Is this possible?
Regards Austin
-- [ Drupal support list | http://lists.drupal.org/ ]