function theme_webform_conditional_group_row in Webform 7.4
Theme an individual conditional row of webform_conditionals_form().
1 theme call to theme_webform_conditional_group_row()
- webform_conditionals_form in includes/
webform.conditionals.inc - Form builder; Provide the form for adding conditionals to a webform node.
File
- includes/
webform.conditionals.inc, line 329 - Form elements and menu callbacks to provide conditional handling in Webform.
Code
function theme_webform_conditional_group_row($variables) {
$element = $variables['element'];
$element['weight']['#attributes']['class'] = array(
'webform-conditional-weight',
);
$weight = drupal_render($element['weight']);
$classes = array(
'draggable',
);
if (!empty($element['#even_odd'])) {
$classes[] = $element['#even_odd'];
}
if (!empty($element['#ajax_added'])) {
$classes[] = 'ajax-new-content';
}
$output = '';
$output .= '<tr class="' . implode(' ', $classes) . '">';
$output .= '<td>' . drupal_render_children($element) . '</td>';
$output .= '<td>' . $weight . '</td>';
$output .= '</tr>';
return $output;
}