You are here

function charts_type_info in Charts 7.2

Same name and namespace in other branches
  1. 8 includes/charts.pages.inc \charts_type_info()

Retrieve a list of all chart types available.

See also

hook_charts_type_info()

2 calls to charts_type_info()
charts_settings_form in includes/charts.pages.inc
Module settings page. Users can set the default layout of their charts.
chart_get_type in ./charts.module
Retrieve a specific chart type.

File

./charts.module, line 301
Provides elements for rendering charts and Views integration.

Code

function charts_type_info() {
  $charts_type_info = module_invoke_all('charts_type_info');

  // Populate defaults for all chart types.
  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_alter('charts_type_info', $charts_type_info);
  return $charts_type_info;
}