<div dir="ltr">night_pharmacy_table is a form submit callback. It already gets passed the $form parameter; you have got the function signature wrong.<div><br></div><div><div>So you need to change<div><div>function night_pharmacy_table($form_state) {</div>

<div>to</div><div>function night_pharmacy_table($form, &amp;$form_state) {</div></div></div><div><br></div><div><br></div><div>Documentation here: <a href="https://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7#submit_property">https://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7#submit_property</a><div>

<br></div></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 4 December 2013 12:14, Muzaffer Tolga Ozses <span dir="ltr">&lt;<a href="mailto:tolga@ozses.net" target="_blank">tolga@ozses.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace">Hi,</div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace">

<br></div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace">
This is really a PHP question, but it involves $form_state, so bear with me please.</div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace"><br></div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace">


In my code at <a href="http://git.webciniz.im/?p=project/night_pharmacy.git;a=blob;f=night_pharmacy.module;h=132b5d4a90692acfadfe9e11af128f712df1c24d;hb=e89e63bb07f064898ca21be1c97aba221b4dbdaf#l57" target="_blank">http://git.webciniz.im/?p=project/night_pharmacy.git;a=blob;f=night_pharmacy.module;h=132b5d4a90692acfadfe9e11af128f712df1c24d;hb=e89e63bb07f064898ca21be1c97aba221b4dbdaf#l57</a> I want to be able to pass $form parameters to night_pharmacy_table, to no avail. Can you help me guys?</div>


<div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace"><br></div><div class="gmail_default" style="font-family:&#39;courier new&#39;,monospace">Thanks in advance :)</div></div>
</blockquote></div><br></div>