You are here

function theme_webform2pdf_download_pdf_form in Webform2PDF 6.2

Same name and namespace in other branches
  1. 6 webform2pdf.module \theme_webform2pdf_download_pdf_form()

File

includes/webform2pdf.download.inc, line 89

Code

function theme_webform2pdf_download_pdf_form($form) {
  $output = '';
  $header = theme('webform_results_submissions_header', $node);
  $hc = theme('table_select_header_cell');
  array_unshift($header, $hc);
  $rows = array();
  foreach ($form['sids']['#options'] as $sid => $empty) {
    $row = array();
    $row[] = array(
      'data' => drupal_render($form['sids'][$sid]),
      'class' => 'checkbox',
    );
    $row[] = array(
      'data' => drupal_render($form['sid'][$sid]),
    );
    $row[] = array(
      'data' => drupal_render($form['date'][$sid]),
    );
    $row[] = array(
      'data' => drupal_render($form['username'][$sid]),
    );
    $row[] = array(
      'data' => drupal_render($form['remote_addr'][$sid]),
    );
    $row[] = array(
      'data' => drupal_render($form['view'][$sid]),
    );
    $row[] = array(
      'data' => drupal_render($form['download_pdf'][$sid]),
    );
    $rows[] = $row;
  }
  $output .= theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}