See <a href="http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_menu/6">http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_menu/6</a><div><br></div><div>Integers in page arguments correspond to the index of %placeholder in the URL, counting from 0</div>
<div><br></div><div>0 = accountant</div><div>1 = edit</div><div>2 = registry</div><div>3 = % (whatever is present in the URL)</div><div><br></div><div>In your example, the URL accountant/edit/registry/foo will return drupal_get_form(&#39;accountant_registry_form&#39;, &#39;foo&#39;) which calls accountant_registry_form($form_state, &#39;foo&#39;).</div>
<div><br><div class="gmail_quote">On Mon, Apr 11, 2011 at 8:19 PM, Austin Einter <span dir="ltr">&lt;<a href="mailto:austin.einter@gmail.com">austin.einter@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><font face="Lucida Console">Hi All</font></div>
<div><font face="Lucida Console">I am trying to understand, what this &#39;page arguments&#39; is.</font></div>
<div><font face="Lucida Console"></font> </div>
<div><font face="Lucida Console"></font> </div>
<div><font face="Lucida Console">$items[&#39;accountant/edit/registry/%&#39;] = array(<br>    &#39;type&#39;             =&gt; MENU_CALLBACK,<br>    &#39;title&#39;            =&gt; &#39;Create Registry&#39;,<br>    &#39;page callback&#39;    =&gt; &#39;drupal_get_form&#39;,<br>

    &#39;page arguments&#39;   =&gt; array(&#39;accountant_registry_form&#39;,3),<br>    &#39;access callback&#39;  =&gt; &#39;user_access&#39;,<br>    &#39;access arguments&#39; =&gt; array(&#39;accountant create registry&#39;),<br>

  ); </font></div>
<p><font face="Lucida Console">Page arugments contains a function name &#39;accountant_registry_form&#39; and 3 number of arguments.</font></p>
<div>So the function <font face="Lucida Console">&#39;accountant_registry_form&#39; 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.</font></div>


<div><font face="Lucida Console"></font> </div>
<div><font face="Lucida Console">Can somebody give me a high level explaination and point me to a right link/document to understand this.</font></div>
<div><font face="Lucida Console"></font> </div>
<div><font face="Lucida Console">Thanks</font></div>
<div><font face="Lucida Console">Austin</font></div>
<div><br><br></div>
<div class="gmail_quote">On Tue, Apr 12, 2011 at 7:09 AM, Austin Einter <span dir="ltr">&lt;<a href="mailto:austin.einter@gmail.com" target="_blank">austin.einter@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">
<div>Hi All</div>
<div>I have a search text field, and a search button. </div>
<div>If user presss search button, I redirect to a new page and &#39;page callback&#39; function invoked. </div>
<div> </div>
<div>I wanted the data entered in search text field (that was present in  form of previous page) should be available in &#39;page callback&#39; function.</div>
<div> </div>
<div>Is this possible?</div>
<div> </div>
<div>Regards</div>
<div>Austin</div><font color="#888888">
<div> </div></font></blockquote></div><br>
<br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br></div>