You are here

function uc_webform_application in Ubercart Webform Integration 7

1 string reference to 'uc_webform_application'
uc_webform_menu in ./uc_webform.module
Implements hook_menu

File

./uc_webform.module, line 42

Code

function uc_webform_application($oid) {
  $urls = explode('/', $_GET['q']);
  $webform_order_query = db_query('SELECT * FROM {uc_webform_submission} uc LEFT JOIN {webform_submissions} wc ON uc.sid = wc.sid WHERE order_id = :oid', array(
    ':oid' => $urls[3],
  ));
  $display = '<ul>';
  include_once drupal_get_path('module', 'webform') . '/includes/webform.submissions.inc';
  foreach ($webform_order_query as $record) {

    // get the result
    $display .= '<li>' . l('Webform Results', 'node/' . $record->nid . '/submission/' . $record->sid) . '</li>';

    // drupal_render(webform_submission_page($webform, $record->sid, 'html')) . '<hr/>';
  }
  $display .= '</ul>';
  return $display;
}