You are here

function webform_conditional_form_time in Webform 7.4

Form callback for time conditional fields.

1 string reference to 'webform_conditional_form_time'
_webform_conditional_operator_info in includes/webform.conditionals.inc
Implements hook_webform_conditional_operator_info().

File

includes/webform.conditionals.inc, line 1327
Form elements and menu callbacks to provide conditional handling in Webform.

Code

function webform_conditional_form_time($node) {
  static $count = 0;
  $element = array(
    '#title' => NULL,
    '#title_display' => 'invisible',
    '#size' => 24,
    '#attributes' => array(
      'placeholder' => t('HH:MMam or valid time'),
    ),
    '#type' => 'textfield',
    '#name' => 'webform-conditional-time-' . $count++,
  );
  return drupal_render($element);
}