[support] Solved: Re: Argument passing
Austin Einter
austin.einter at gmail.com
Tue Apr 12 03:26:12 UTC 2011
Figured out, while redirecting, I only need to append the string that I need
in new page.
With this change, it is working fine.
Still I do not know why the integer argument is there, for example 3 in
below line.
'page arguments' => array('accountant_registry_form',3),
I put it any value, still I get as many args as I want.
Regards
Austin
On Tue, Apr 12, 2011 at 7:49 AM, Austin Einter <austin.einter at gmail.com>wrote:
> 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 at gmail.com>wrote:
>
>> 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
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110412/b8b12c25/attachment.html
More information about the support
mailing list