You are here

webform-analysis.tpl.php in Webform 7.4

Template for printing out the contents of the "Analysis" tab on a Webform.

Available variables:

  • $node: The node object for this webform.
  • $component: If a single components analysis is being printed, this will contain a Webform component. Otherwise all components are having their analysis printed on the same page.
  • $analysis: A renderable object containing the following children:
    • 'exposed_filter': The output of any exposed filter created by the webform_analysis, webform_analysis_CONTENTTYPE, or webform_analysis_NID view.
    • 'form': A form for selecting which components should be included in the analysis.
    • 'data': An render array of analysis results for each component enabled.

File

templates/webform-analysis.tpl.php
View source
<?php

/**
 * @file
 * Template for printing out the contents of the "Analysis" tab on a Webform.
 *
 * Available variables:
 * - $node: The node object for this webform.
 * - $component: If a single components analysis is being printed, this will
 *   contain a Webform component. Otherwise all components are having their
 *   analysis printed on the same page.
 * - $analysis: A renderable object containing the following children:
 *   - 'exposed_filter': The output of any exposed filter created by the
 *     webform_analysis, webform_analysis_CONTENTTYPE, or webform_analysis_NID
 *     view.
 *   - 'form': A form for selecting which components should be included in the
 *     analysis.
 *   - 'data': An render array of analysis results for each component enabled.
 */
?>
<div class="webform-analysis">
  <?php

print drupal_render($analysis['form']['help']);
?>

  <?php

print drupal_render($analysis['exposed_filter']);
?>
  <div class="webform-analysis-data">
    <?php

print drupal_render($analysis['data']);
?>
  </div>
  <?php

print drupal_render($analysis['form']);
?>
  <?php


/* Print out any remaining part of the renderable. */
?>
  <?php

print drupal_render_children($analysis);
?>
</div>