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

Misc:

* hook_chartsinfo renamed to hook_charts_info
parent 59b02489
No related branches found
No related tags found
No related merge requests found
...@@ -150,14 +150,14 @@ function _charts_settings($form_state) { ...@@ -150,14 +150,14 @@ function _charts_settings($form_state) {
'#value' => _charts_example(), '#value' => _charts_example(),
); );
$options = module_invoke_all('chartsinfo', 'list'); $options = module_invoke_all('charts_info', 'list');
$form['plugin'] = array( $form['plugin'] = array(
'#default_value' => empty($settings['#plugin']) ? '' : $settings['#plugin'], '#default_value' => empty($settings['#plugin']) ? '' : $settings['#plugin'],
'#options' => $options, '#options' => $options,
'#type' => 'select', '#type' => 'select',
'#title' => t('Chart plugin'), '#title' => t('Chart plugin'),
); );
$options = _charts_module_invoke_all('chartsinfo', 'charttypes'); $options = _charts_module_invoke_all('charts_info', 'charttypes');
asort($options); asort($options);
$form['type'] = array( $form['type'] = array(
'#default_value' => empty($settings['#type']) ? '' : $settings['#type'], '#default_value' => empty($settings['#type']) ? '' : $settings['#type'],
......
...@@ -96,7 +96,7 @@ function charts_menu() { ...@@ -96,7 +96,7 @@ function charts_menu() {
* Implementation of hook_requirements(). * Implementation of hook_requirements().
*/ */
function charts_requirements($phase) { 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']['title'] = t('Charts');
$requirements['charts']['value'] = t('No Charts provider installed'); $requirements['charts']['value'] = t('No Charts provider installed');
$requirements['charts']['severity'] = REQUIREMENT_ERROR; $requirements['charts']['severity'] = REQUIREMENT_ERROR;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* of a chart provider, like its name, what types of charts * of a chart provider, like its name, what types of charts
* it can perform and what are the restrictions. * it can perform and what are the restrictions.
*/ */
function fusioncharts_chartsinfo($op) { function fusioncharts_charts_info($op) {
switch ($op) { switch ($op) {
case 'list': case 'list':
return array('fusioncharts' => 'FusionCharts'); return array('fusioncharts' => 'FusionCharts');
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* of a chart provider, like its name, what types of charts * of a chart provider, like its name, what types of charts
* it can perform and what are the restrictions. * it can perform and what are the restrictions.
*/ */
function google_charts_chartsinfo($op) { function google_charts_charts_info($op) {
switch ($op) { switch ($op) {
case 'list': case 'list':
return array('google_charts' => 'Google Chart API'); return array('google_charts' => 'Google Chart API');
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* of a chart provider, like its name, what types of charts * of a chart provider, like its name, what types of charts
* it can perform and what are the restrictions. * it can perform and what are the restrictions.
*/ */
function openflashchart_chartsinfo($op) { function openflashchart_charts_info($op) {
switch ($op) { switch ($op) {
case 'list': case 'list':
return array('openflashchart' => 'Open Flash Chart'); return array('openflashchart' => 'Open Flash Chart');
......
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