You are here

function charts_type_info in Charts 8

Same name and namespace in other branches
  1. 7.2 charts.module \charts_type_info()

Retrieve a list of all chart types available.

See also

hook_charts_type_info()

2 calls to charts_type_info()
charts_get_type in includes/charts.pages.inc
Retrieve a specific chart type.
charts_settings_form in includes/charts.pages.inc

File

includes/charts.pages.inc, line 73
Menu callbacks for Charts module.

Code

function charts_type_info() {
  $charts_type_info = Drupal::moduleHandler()
    ->invokeAll('charts_type_info');
  foreach ($charts_type_info as $chart_type => $chart_type_info) {
    $charts_type_info[$chart_type] += array(
      'label' => '',
      'axis' => CHARTS_DUAL_AXIS,
      'axis_inverted' => FALSE,
      'stacking' => FALSE,
    );
  }
  Drupal::moduleHandler()
    ->alter('charts_type_info', $charts_type_info);
  return $charts_type_info;
}