You are here

function webform_results in Webform 5.2

Same name and namespace in other branches
  1. 5 webform.module \webform_results()

Menu callback for all content under admin/content/webform.

1 string reference to 'webform_results'
webform_menu in ./webform.module
Implementation of hook_menu().

File

./webform.module, line 2162

Code

function webform_results($node, $op = 'submissions') {
  include_once drupal_get_path('module', 'webform') . '/webform_report.inc';
  include_once drupal_get_path('module', 'webform') . '/webform_submissions.inc';
  drupal_set_title(check_plain($node->title));
  switch ($op) {
    case 'analysis':
      return webform_results_analysis($node);
    case 'clear':
      return drupal_get_form('webform_results_clear_form', $node);
    case 'table':
      return webform_results_table($node, '50');
    case 'download':
      return drupal_get_form('webform_results_download_form', $node);
    case 'user_submissions':
      return webform_results_submissions($node, TRUE, '50');
    case 'submissions':
    default:
      return webform_results_submissions($node, FALSE, '50');
      break;
  }
}