You are here

function hook_charts_info_alter in Charts 7.2

Same name and namespace in other branches
  1. 8 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.

1 invocation of hook_charts_info_alter()
charts_info in ./charts.module
Retrieve a list of all charting libraries available.

File

./charts.api.php, line 154
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';
}