You are here

function theme_pardot_webform_components_form in Pardot Integration 6

Same name and namespace in other branches
  1. 7.2 pardot_webform/pardot_webform.admin.inc \theme_pardot_webform_components_form()
  2. 7 pardot.admin.inc \theme_pardot_webform_components_form()

File

./pardot.admin.inc, line 106

Code

function theme_pardot_webform_components_form($form) {
  $output = '';
  $output .= drupal_render($form['details']);
  foreach (element_children($form['components']) as $k) {
    $row = array();

    // Name
    $row[] = $form['#node']->webform['components'][$k]['name'];

    // Type
    $row[] = $form['#node']->webform['components'][$k]['type'];

    // Pardot key
    unset($form['components'][$k]['key']['#title']);
    $row[] = drupal_render($form['components'][$k]['key']);
    $rows[] = $row;
  }
  $output .= theme('table', array(
    'Name',
    'Type',
    'Pardot key',
  ), $rows);
  $output .= drupal_render($form);
  return $output;
}