You are here

function theme_webform_time in Webform 5

Same name and namespace in other branches
  1. 5.2 components/time.inc \theme_webform_time()
  2. 6.3 components/time.inc \theme_webform_time()
  3. 6.2 components/time.inc \theme_webform_time()
  4. 7.4 components/time.inc \theme_webform_time()
  5. 7.3 components/time.inc \theme_webform_time()

Theme a webform time element.

1 theme call to theme_webform_time()
_webform_render_time in components/time.inc
Build a form item array containing all the properties of this component

File

components/time.inc, line 337

Code

function theme_webform_time($element) {
  $element['#type'] = 'element';
  $element['#children'] = '<div class="container-inline">' . drupal_render($element['hour']) . drupal_render($element['minute']) . drupal_render($element['ampm']) . '</div>';
  return theme('form_element', $element, $element['#children']);
}