function google_chart_tools_load_types in Google Chart Tools 7
Return types of charts that google can render.
1 call to google_chart_tools_load_types()
- google_chart_tools_views_plugin_style::options_form in google_chart_tools_views/
views/ google_chart_tools_views_plugin_style.inc - Provide a form to edit options for this plugin.
File
- ./
google_chart_tools.module, line 37
Code
function google_chart_tools_load_types() {
// define default types from API documentation
$types = array(
'LineChart' => t('Line Chart'),
'PieChart' => t('Pie Chart'),
'ColumnChart' => t('Column Chart'),
'AreaChart' => t('Area Chart'),
'Gauge' => t('Gauge'),
'BarChart' => t('Bar Chart'),
'OrgChart' => t('Organizational Chart'),
);
// allow other projects to alter chart types
drupal_alter('gct_types', $types);
return $types;
}