'Open Flash Chart'); case 'charttypes': return array( 'line2D' => t('Line 2D'), 'vbar2D' => t('Vertical Bar 2D'), 'vbar3D' => t('Vertical Bar 3D'), 'pie2D' => t('Pie 2D'), ); } } /** * Immplementation of hook_chartsapi(). * * Its a Charts module hook. It transform the data into a HTML chart. * * @param &$data * Array. The */ function openflashchart_chartsapi(&$data) { // Include the specific Open Flash Chart helper functions include_once drupal_get_path('module', 'openflashchart') .'/openflashchart.inc'; $chart = new open_flash_chart_api(); if ($error = _openflashchart_chart($chart, $data)) { return $error; } if ($error = _openflashchart_series($chart, $data)) { return $error; } return $chart->render(); }