webform-analysis.tpl.php 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @file
  4. * Template for printing out the contents of the "Analysis" tab on a Webform.
  5. *
  6. * Available variables:
  7. * - $node: The node object for this webform.
  8. * - $component: If a single components analysis is being printed, this will
  9. * contain a Webform component. Otherwise all components are having their
  10. * analysis printed on the same page.
  11. * - $analysis: A renderable object containing the following children:
  12. * - 'exposed_filter': The output of any exposed filter created by the
  13. * webform_analysis, webform_analysis_CONTENTTYPE, or webform_analysis_NID
  14. * view.
  15. * - 'form': A form for selecting which components should be included in the
  16. * analysis.
  17. * - 'data': An render array of analysis results for each component enabled.
  18. */
  19. ?>
  20. <div class="webform-analysis">
  21. <?php print drupal_render($analysis['form']['help']); ?>
  22. <?php print drupal_render($analysis['exposed_filter']); ?>
  23. <div class="webform-analysis-data">
  24. <?php print drupal_render($analysis['data']); ?>
  25. </div>
  26. <?php print drupal_render($analysis['form']); ?>
  27. <?php /* Print out any remaining part of the renderable. */ ?>
  28. <?php print drupal_render_children($analysis); ?>
  29. </div>