function charts_info in Charts 8
Same name and namespace in other branches
- 7.2 charts.module \charts_info()
Retrieve a list of all charting libraries available.
See also
1 call to charts_info()
- charts_settings_form in includes/
charts.pages.inc
File
- includes/
charts.pages.inc, line 51 - Menu callbacks for Charts module.
Code
function charts_info() {
$charts_info = array();
$chart_modules = Drupal::moduleHandler()
->getImplementations('charts_info');
foreach ($chart_modules as $module) {
$module_charts_info = Drupal::moduleHandler()
->invoke($module, 'charts_info');
foreach ($module_charts_info as $chart_library => $chart_library_info) {
$module_charts_info[$chart_library]['module'] = $module;
}
$charts_info = array_merge($charts_info, $module_charts_info);
}
Drupal::moduleHandler()
->alter('charts_info', $charts_info);
return $charts_info;
}