function hook_charts_info_alter in Charts 8
Same name and namespace in other branches
- 7.2 charts.api.php \hook_charts_info_alter()
Alter the chart types in the system.
If your module needs to modify the capabilities of a charting library, such as to add support for a new chart type, it may do so with this hook.
Parameters
$info:
2 invocations of hook_charts_info_alter()
- ChartsConfigForm::charts_info in src/
Form/ ChartsConfigForm.php - charts_info in includes/
charts.pages.inc - Retrieve a list of all charting libraries available.
File
- ./
charts.api.php, line 155 - Documentation on hooks provided by the Charts module.
Code
function hook_charts_info_alter(&$info) {
// Say the Google charts library supports geo charts.
$info['google']['types'][] = 'geo';
}