Nasir Uddin February 25, 2014 No Comments

How to get Webform Submission data from Sid

Sometimes, we have to load webform submission of drupal from submission id (sid). If you have a sid, then you will get easily submission data from my below codes. [sourcecode language=”bash”] module_load_include(‘inc’,’webform’,’includes/webform.submissions’); $sid = 10; $submission = webform_get_submissions(array(‘sid’ => $sid)); $nid = $submission[$sid]->nid; $web_submission = webform_get_submission($nid, $sid); $node = node_load($nid); $output = webform_submission_render($node, $web_submission, NULL, […]