function chart_views_plugin_style_chart::aggregated_field_options in Google Chart Tools: Image Charts 6
Create an options array of available fields from this view.
1 call to chart_views_plugin_style_chart::aggregated_field_options()
- chart_views_plugin_style_chart::options_form in chart_views/
includes/ views/ chart_views_plugin_style_chart.inc - Generate a form for setting options.
File
- chart_views/
includes/ views/ chart_views_plugin_style_chart.inc, line 114 - Drupal Chart API Views Integration. @Based on the Charts module's Views integration
Class
- chart_views_plugin_style_chart
- Style plugin to render view as a chart.
Code
function aggregated_field_options() {
$field_names = array();
$handlers = $this->display->handler
->get_handlers('field');
foreach ($handlers as $field => $handler) {
if ($label = $handler
->label()) {
$field_names[$field] = $label;
}
else {
$field_names[$field] = $handler
->ui_name();
}
}
return $field_names;
}