Skip to content
Snippets Groups Projects
Commit d544ebd1 authored by Bruno Massa's avatar Bruno Massa
Browse files

Misc:

* hook_chartsapi renamed to hook_charts_render
parent 41149cb9
No related branches found
No related tags found
No related merge requests found
...@@ -64,10 +64,8 @@ function charts_chart(&$data) { ...@@ -64,10 +64,8 @@ function charts_chart(&$data) {
// Now, merge all the rest of the options saved by default // Now, merge all the rest of the options saved by default
$data = array_merge($settings, $data); $data = array_merge($settings, $data);
$chart_provider = $data['#plugin'] .'_chartsapi'; $chart_provider = $data['#plugin'] .'_charts_render';
if (function_exists($chart_provider)) { return $chart_provider($data);
return $chart_provider($data);
}
} }
/** /**
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*/ */
/** /**
* Immplementation of hook_chartsapi(). * Immplementation of hook_charts_render().
* *
* Its a Charts module hook. It defines almost all aspects * Its a Charts module hook. It defines almost all aspects
* of a chart provider, like its name, what types of charts * of a chart provider, like its name, what types of charts
...@@ -34,14 +34,14 @@ function fusioncharts_charts_info($op) { ...@@ -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. * Its a Charts module hook. It transform the data into a HTML chart.
* *
* @param &$data * @param &$data
* Array. The * Array. The
*/ */
function fusioncharts_chartsapi(&$data) { function fusioncharts_charts_render(&$data) {
// Include the specific Google Chart API helper functions // Include the specific Google Chart API helper functions
include_once drupal_get_path('module', 'fusioncharts') .'/fusioncharts.inc'; include_once drupal_get_path('module', 'fusioncharts') .'/fusioncharts.inc';
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*/ */
/** /**
* Immplementation of hook_chartsapi(). * Immplementation of hook_charts_render().
* *
* Its a Charts module hook. It defines almost all aspects * Its a Charts module hook. It defines almost all aspects
* of a chart provider, like its name, what types of charts * of a chart provider, like its name, what types of charts
...@@ -34,14 +34,14 @@ function google_charts_charts_info($op) { ...@@ -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. * Its a Charts module hook. It transform the data into a HTML chart.
* *
* @param &$data * @param &$data
* Array. The * Array. The
*/ */
function google_charts_chartsapi(&$data) { function google_charts_charts_render(&$data) {
// Include the specific Google Chart API helper functions // Include the specific Google Chart API helper functions
include_once drupal_get_path('module', 'google_charts') .'/google_charts.inc'; include_once drupal_get_path('module', 'google_charts') .'/google_charts.inc';
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
*/ */
/** /**
* Immplementation of hook_chartsapi(). * Immplementation of hook_charts_info().
* *
* Its a Charts module hook. It defines almost all aspects * Its a Charts module hook. It defines almost all aspects
* of a chart provider, like its name, what types of charts * of a chart provider, like its name, what types of charts
...@@ -31,14 +31,14 @@ function openflashchart_charts_info($op) { ...@@ -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. * Its a Charts module hook. It transform the data into a HTML chart.
* *
* @param &$data * @param &$data
* Array. The * Array. The
*/ */
function openflashchart_chartsapi(&$data) { function openflashchart_charts_render(&$data) {
// Include the specific Open Flash Chart helper functions // Include the specific Open Flash Chart helper functions
include_once drupal_get_path('module', 'openflashchart') .'/openflashchart.inc'; include_once drupal_get_path('module', 'openflashchart') .'/openflashchart.inc';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment