You are here

function theme_quant_time_form in Quant 7

Same name and namespace in other branches
  1. 6 includes/theme.inc \theme_quant_time_form()

Theme wrapper for quant_time_form()

File

./quant.theme.inc, line 30
Theme wrappers

Code

function theme_quant_time_form($vars) {
  $form = $vars['form'];
  $output = '';
  $output .= '<fieldset>';
  $output .= '<div class="description">';
  $output .= drupal_render($form['message']);
  $output .= '</div>';
  $output .= '<div class="quant-option-row">';
  $output .= drupal_render($form['option']['period']);
  $output .= drupal_render($form['period']);
  $output .= '</div>';
  $output .= '<div class="quant-option-row">';
  $output .= drupal_render($form['option']['custom']);
  $output .= '<span class="description">' . t('From:') . '</span>';
  $output .= drupal_render($form['custom_from']);
  $output .= '<span class="description">' . t('To:') . '</span>';
  $output .= drupal_render($form['custom_to']);
  $output .= '<span class="description"><i>' . t('Format !format', array(
    '!format' => 'MM/DD/YYYY',
  )) . '</i></span>';
  $output .= '</div>';
  $output .= drupal_render_children($form);
  $output .= '</fieldset>';
  return $output;
}