title: Warning: Missing argument 2 for customvishal_form() in Drupal 7 :
body: <p>I have made a custom module and it works fine till I start working on my custom theme.</p>
  
  <p>Once I move over to my custom theme I get this error</p>
  
  <blockquote>
    <p>Warning: Missing argument 2 for customvishal_form(), called in
    /home/vishal/Dropbox/sites/new/includes/theme.inc on line 1029 and
    defined in customvishal_form() (line 441 of
    /home/vishal/Dropbox/sites/new/sites/all/modules/customvishal/customvishal.module).</p>
  </blockquote>
  
  <p>You can see the error at : <a href="http://www.iamvishal.com/dev/about-us" rel="nofollow">http://www.iamvishal.com/dev/about-us</a></p>
  
  <p>I don't think anything is wrong with my code  :</p>
  
  <pre><code>/**
  * A simple form.
  */
  function customvishal_form($form, &amp;$form_submit) {
  $form['customvishalactivate'] = array(
  '#title' =&gt; t('Activate Preference'),
  '#type' =&gt; 'radios',
  '#options' =&gt; array('1' =&gt; t('Yes'), '0' =&gt; t('No')),
  '#required' =&gt; TRUE,
  );
  return $form; 
  }
  </code></pre>
  
  <p>Its called from </p>
  
  <pre><code>function customvishal_pref($arg1)
  {
   // Here we willl make the form and save the data so when cron
   // runs we will check the users preference
   $build = array(
  'header_text' =&gt; array(
    '#type' =&gt; 'markup',
    '#markup' =&gt; '&lt;p&gt;' . t('This page is where you add your preferences. Based on your      
    entered choices we will send you alerts ') . '&lt;/p&gt;',
   ),
   'example_form' =&gt; drupal_get_form('customvishal_form'),
   );
   return $build;
  
   }
  </code></pre>
  
  <p>What might be causing this problem ?</p>
  
  <p>Cheers,
  Vishal</p>