function charts_plugin_style_chart::calc_fields in Charts 7
Same name and namespace in other branches
- 6 views/charts_plugin_style_chart.inc \charts_plugin_style_chart::calc_fields()
Make sure calc_fields is always an array, even when not multiple.
3 calls to charts_plugin_style_chart::calc_fields()
- charts_plugin_style_chart::options_form in views/
charts_plugin_style_chart.inc - Generate a form for setting options.
- charts_plugin_style_chart::query in views/
charts_plugin_style_chart.inc - Custom SQL query change.
- charts_plugin_style_chart::render in views/
charts_plugin_style_chart.inc - Define and display a chart from the grouped values.
File
- views/
charts_plugin_style_chart.inc, line 136 - Contains the chart style plugin. @author Bruno Massa http://drupal.org/user/67164 @author Karen Stevenson http://drupal.org/user/45874
Class
- charts_plugin_style_chart
- Style plugin to render view as a chart.
Code
function calc_fields() {
$calc_fields = (array) $this->options['calc_fields'];
return array_values($calc_fields);
}