title: How to use drupal 7 date_popup to get time only?
body: <p>In drupal 7 with the date module installed, when building a form, I want to simply collect (via a form) a time for something to occur.  </p>
  
  <p>When using the form api, I define my field as follows</p>
  
  <pre><code>     $form['dose']['time'] = array(
          '#type' =&gt; 'date_popup',
          '#title' =&gt; t('Start Time'),
          '#date_format' =&gt; 'h:i A',
    );
  </code></pre>
  
  <p>This shows up just fine on the screen, with the time picker I want.</p>
  
  <p>When processing this in my submit function, I get no value for this form field.  It is blank.</p>
  
  <p>If I change this only to</p>
  
  <pre><code>    $form['dose']['time'] = array(
      '#type' =&gt; 'date_popup',
      '#title' =&gt; t('End Date'),
      '#date_format' =&gt; 'Y-m-d',
    );
  </code></pre>
  
  <p>Then my submit function sees this form field just fine, however it also displays a date picker, which I cannot have for this field.</p>
  
  <p>If I set the #required=TRUE for the first example, then validation fails, presumably because there is no Y,m,d selected.  If there was a way I could set a BS value for this, I'd be ok with it as I could parse it off later.</p>
  
  <p>On a sidenote, I've also tried form type date_select in much the same fashion, with the exact same blank results.</p>
  
  <p>Is there any way to use the native form api in drupal and be able to actually get a time through a picker?</p>