Thanks Patrick, Unfortunately, night_pharmacy_table never gets called, and I have no clue why. Do you happen to have an idea?
On 4 December 2013 14:35, Patrick Dawkins <pjcdawk...@gmail.com> wrote: > night_pharmacy_table is a form submit callback. It already gets passed the > $form parameter; you have got the function signature wrong. > > So you need to change > function night_pharmacy_table($form_state) { > to > function night_pharmacy_table($form, &$form_state) { > > > Documentation here: > https://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7#submit_property > > > > > On 4 December 2013 12:14, Muzaffer Tolga Ozses <to...@ozses.net> wrote: > >> Hi, >> >> This is really a PHP question, but it involves $form_state, so bear with >> me please. >> >> In my code at >> http://git.webciniz.im/?p=project/night_pharmacy.git;a=blob;f=night_pharmacy.module;h=132b5d4a90692acfadfe9e11af128f712df1c24d;hb=e89e63bb07f064898ca21be1c97aba221b4dbdaf#l57I >> want to be able to pass $form parameters to night_pharmacy_table, to no >> avail. Can you help me guys? >> >> Thanks in advance :) >> > >