You are here

function charts_graphs_bluff_chartgraph_provider in Charts and Graphs 6.2

Same name and namespace in other branches
  1. 7 apis/charts_graphs_bluff/charts_graphs_bluff.module \charts_graphs_bluff_chartgraph_provider()

Implementation of hook_chartgraph_provider().

File

apis/charts_graphs_bluff/charts_graphs_bluff.module, line 10
drupal module file implementing bluff charting.

Code

function charts_graphs_bluff_chartgraph_provider() {
  $provider = array(
    'path' => dirname(__FILE__) . '/charts_graphs_bluff.class.inc',
    // must be full path
    'clazz' => 'ChartsGraphsBluff',
    // implementation class' name
    'name' => 'bluff',
    // name used when invoking through a factory method
    'nice_name' => 'Bluff',
    'chart_types' => array(
      'line' => t('Line'),
      'bar' => t('Bar'),
      'pie' => t('Pie'),
      'area' => t('Area'),
      'side_bar' => t('Side Bar'),
      'stacked_side_bar' => t('Stacked Side Bar'),
      'stacked_area' => t('Stacked Area'),
      'stacked_bar' => t('Stacked Bar'),
      'mini_bar' => t('Small Bar'),
      'mini_pie' => t('Small Pie'),
      'mini_side_bar' => t('Small Side Bar'),
    ),
    'themes' => array(
      'keynote' => t('Keynote'),
      '37signals' => t('37 Signals'),
      'rails_keynote' => t('Rails Keynote'),
      'odeo' => t('Odeo'),
      'pastel' => t('Pastel'),
      'greyscale' => t('Greyscale'),
    ),
  );
  return (object) $provider;
}