From d544ebd12357151de320fb85bc6650fe3197b007 Mon Sep 17 00:00:00 2001 From: Bruno Massa <brmassa@67164.no-reply.drupal.org> Date: Mon, 7 Jul 2008 12:09:01 +0000 Subject: [PATCH] Misc: * hook_chartsapi renamed to hook_charts_render --- charts.module | 6 ++---- fusioncharts/fusioncharts.module | 6 +++--- google_charts/google_charts.module | 6 +++--- openflashchart/openflashchart.module | 6 +++--- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/charts.module b/charts.module index d7d3944..98a84a4 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 ca4def1..59b189b 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 cb5c2bb..edc6dda 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 5d69304..d85972f 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'; -- GitLab