You are here

function theme_webform_matrix in Webform Matrix Component 7

Same name and namespace in other branches
  1. 6 components/matrix.inc \theme_webform_matrix()
  2. 7.2 components/matrix.inc \theme_webform_matrix()
  3. 7.3 components/matrix.inc \theme_webform_matrix()

Theme for webform matrix.

File

components/matrix.inc, line 419
Webform module matrix component.

Code

function theme_webform_matrix($variables) {
  $element = $variables['element'];
  $component = $element['#webform_component'];
  $form_key = $component['form_key'];
  $pid = $component['pid'];
  $id = "edit-{$form_key}-{$pid}";
  $output = "<div class='matrix-render-div' id='{$id}'>";
  $output .= drupal_render_children($element);
  $output .= "</div>";
  return $output;
}