You are here

function webform_analysis_enabled_components in Webform 7.4

Return a list of components that should be displayed for analysis.

Parameters

$node: The node whose components' data is being analyzed.

Return value

array An array of component IDs.

2 calls to webform_analysis_enabled_components()
webform_analysis_components_form in includes/webform.report.inc
Form for selecting which components should be shown on the analysis page.
webform_results_analysis in includes/webform.report.inc
Provides a simple analysis of all submissions to a webform.

File

includes/webform.report.inc, line 1812
This file includes helper functions for creating reports for webform.module.

Code

function webform_analysis_enabled_components($node) {
  $cids = array();
  foreach ($node->webform['components'] as $cid => $component) {
    if (!empty($component['extra']['analysis'])) {
      $cids[] = $cid;
    }
  }
  return $cids;
}