From 41149cb9b761687cccaa990ebe532e78d9797485 Mon Sep 17 00:00:00 2001 From: Bruno Massa <brmassa@67164.no-reply.drupal.org> Date: Mon, 7 Jul 2008 12:03:02 +0000 Subject: [PATCH] Misc: * hook_chartsinfo renamed to hook_charts_info --- charts.inc | 4 ++-- charts.module | 2 +- fusioncharts/fusioncharts.module | 2 +- google_charts/google_charts.module | 2 +- openflashchart/openflashchart.module | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/charts.inc b/charts.inc index 167b508..0497151 100644 --- a/charts.inc +++ b/charts.inc @@ -150,14 +150,14 @@ function _charts_settings($form_state) { '#value' => _charts_example(), ); - $options = module_invoke_all('chartsinfo', 'list'); + $options = module_invoke_all('charts_info', 'list'); $form['plugin'] = array( '#default_value' => empty($settings['#plugin']) ? '' : $settings['#plugin'], '#options' => $options, '#type' => 'select', '#title' => t('Chart plugin'), ); - $options = _charts_module_invoke_all('chartsinfo', 'charttypes'); + $options = _charts_module_invoke_all('charts_info', 'charttypes'); asort($options); $form['type'] = array( '#default_value' => empty($settings['#type']) ? '' : $settings['#type'], diff --git a/charts.module b/charts.module index fc58b75..d7d3944 100644 --- a/charts.module +++ b/charts.module @@ -96,7 +96,7 @@ function charts_menu() { * Implementation of hook_requirements(). */ function charts_requirements($phase) { - if ($phase == 'runtime' and !$modules = module_invoke_all('chartsinfo', 'list')) { + if ($phase == 'runtime' and !$modules = module_invoke_all('charts_info', 'list')) { $requirements['charts']['title'] = t('Charts'); $requirements['charts']['value'] = t('No Charts provider installed'); $requirements['charts']['severity'] = REQUIREMENT_ERROR; diff --git a/fusioncharts/fusioncharts.module b/fusioncharts/fusioncharts.module index e27252f..ca4def1 100644 --- a/fusioncharts/fusioncharts.module +++ b/fusioncharts/fusioncharts.module @@ -15,7 +15,7 @@ * of a chart provider, like its name, what types of charts * it can perform and what are the restrictions. */ -function fusioncharts_chartsinfo($op) { +function fusioncharts_charts_info($op) { switch ($op) { case 'list': return array('fusioncharts' => 'FusionCharts'); diff --git a/google_charts/google_charts.module b/google_charts/google_charts.module index c48451c..cb5c2bb 100644 --- a/google_charts/google_charts.module +++ b/google_charts/google_charts.module @@ -15,7 +15,7 @@ * of a chart provider, like its name, what types of charts * it can perform and what are the restrictions. */ -function google_charts_chartsinfo($op) { +function google_charts_charts_info($op) { switch ($op) { case 'list': return array('google_charts' => 'Google Chart API'); diff --git a/openflashchart/openflashchart.module b/openflashchart/openflashchart.module index 0d17692..5d69304 100644 --- a/openflashchart/openflashchart.module +++ b/openflashchart/openflashchart.module @@ -15,7 +15,7 @@ * of a chart provider, like its name, what types of charts * it can perform and what are the restrictions. */ -function openflashchart_chartsinfo($op) { +function openflashchart_charts_info($op) { switch ($op) { case 'list': return array('openflashchart' => 'Open Flash Chart'); -- GitLab