You are here

function webform_menu_submission_load in Webform 6.2

Same name and namespace in other branches
  1. 6.3 webform.module \webform_menu_submission_load()
  2. 7.4 webform.module \webform_menu_submission_load()
  3. 7.3 webform.module \webform_menu_submission_load()

Menu loader callback. Load a webform submission if the given sid is a valid.

File

./webform.module, line 272

Code

function webform_menu_submission_load($sid, $nid) {
  module_load_include('inc', 'webform', 'webform_submissions');
  $submission = webform_get_submission($nid, $sid);
  return empty($submission) ? FALSE : $submission;
}