diff --git a/charts.module b/charts.module index d7d3944b88159208cc95b9fc08ff3fda6ece50b7..98a84a493a96a2569aea9415bd2881ac1b0a2a04 100644 --- a/charts.module +++ b/charts.module @@ -64,10 +64,8 @@ function charts_chart(&$data) { // Now, merge all the rest of the options saved by default $data = array_merge($settings, $data); - $chart_provider = $data['#plugin'] .'_chartsapi'; - if (function_exists($chart_provider)) { - return $chart_provider($data); - } + $chart_provider = $data['#plugin'] .'_charts_render'; + return $chart_provider($data); } /** diff --git a/fusioncharts/fusioncharts.module b/fusioncharts/fusioncharts.module index ca4def1cf9c33c5673096835735f530f031c834f..59b189b3f57ffe8e2d13e3939b7205529027653c 100644 --- a/fusioncharts/fusioncharts.module +++ b/fusioncharts/fusioncharts.module @@ -9,7 +9,7 @@ */ /** - * Immplementation of hook_chartsapi(). + * Immplementation of hook_charts_render(). * * Its a Charts module hook. It defines almost all aspects * of a chart provider, like its name, what types of charts @@ -34,14 +34,14 @@ function fusioncharts_charts_info($op) { } /** - * Immplementation of hook_chartsapi(). + * Immplementation of hook_charts_render(). * * Its a Charts module hook. It transform the data into a HTML chart. * * @param &$data * Array. The */ -function fusioncharts_chartsapi(&$data) { +function fusioncharts_charts_render(&$data) { // Include the specific Google Chart API helper functions include_once drupal_get_path('module', 'fusioncharts') .'/fusioncharts.inc'; diff --git a/google_charts/google_charts.module b/google_charts/google_charts.module index cb5c2bb1014e91f91f1c5e23ed1cc111191b28d2..edc6dda52c4e87f56af4d586f5dabb9d90b46a94 100644 --- a/google_charts/google_charts.module +++ b/google_charts/google_charts.module @@ -9,7 +9,7 @@ */ /** - * Immplementation of hook_chartsapi(). + * Immplementation of hook_charts_render(). * * Its a Charts module hook. It defines almost all aspects * of a chart provider, like its name, what types of charts @@ -34,14 +34,14 @@ function google_charts_charts_info($op) { } /** - * Immplementation of hook_chartsapi(). + * Immplementation of hook_charts_render(). * * Its a Charts module hook. It transform the data into a HTML chart. * * @param &$data * Array. The */ -function google_charts_chartsapi(&$data) { +function google_charts_charts_render(&$data) { // Include the specific Google Chart API helper functions include_once drupal_get_path('module', 'google_charts') .'/google_charts.inc'; diff --git a/openflashchart/openflashchart.module b/openflashchart/openflashchart.module index 5d69304a4452b96745b743d3204491d31364c1bd..d85972f5449859628b70c8745038a08148230826 100644 --- a/openflashchart/openflashchart.module +++ b/openflashchart/openflashchart.module @@ -9,7 +9,7 @@ */ /** - * Immplementation of hook_chartsapi(). + * Immplementation of hook_charts_info(). * * Its a Charts module hook. It defines almost all aspects * of a chart provider, like its name, what types of charts @@ -31,14 +31,14 @@ function openflashchart_charts_info($op) { } /** - * Immplementation of hook_chartsapi(). + * Immplementation of hook_charts_render(). * * Its a Charts module hook. It transform the data into a HTML chart. * * @param &$data * Array. The */ -function openflashchart_chartsapi(&$data) { +function openflashchart_charts_render(&$data) { // Include the specific Open Flash Chart helper functions include_once drupal_get_path('module', 'openflashchart') .'/openflashchart.inc';