You are here

function theme_webform_components_form in Webform 7.4

Same name and namespace in other branches
  1. 5.2 webform_components.inc \theme_webform_components_form()
  2. 6.3 includes/webform.components.inc \theme_webform_components_form()
  3. 6.2 webform_components.inc \theme_webform_components_form()
  4. 7.3 includes/webform.components.inc \theme_webform_components_form()

Theme the node components form. Use a table to organize the components.

Return value

string Formatted HTML form, ready for display.

File

includes/webform.components.inc, line 287
Webform module component handling.

Code

function theme_webform_components_form($variables) {
  $output = '';
  $output .= drupal_render_children($variables['form']['warning']);
  $output .= theme('table', array(
    'header' => $variables['header'],
    'rows' => $variables['rows'],
    'attributes' => array(
      'id' => 'webform-components',
    ),
  ));
  $output .= drupal_render_children($variables['form']);
  return $output;
}