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

New features:

* Alert users when the Charts module default settings were not yet set.
parent 165fe717
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,14 @@ function charts_requirements($phase) { ...@@ -111,6 +111,14 @@ function charts_requirements($phase) {
$requirements['charts']['severity'] = REQUIREMENT_ERROR; $requirements['charts']['severity'] = REQUIREMENT_ERROR;
$requirements['charts']['description'] = t('Charts core module only provides a a common set of functions. You must install a Charts provider module to create charts.'); $requirements['charts']['description'] = t('Charts core module only provides a a common set of functions. You must install a Charts provider module to create charts.');
return $requirements;
}
elseif ($phase == 'runtime' and !$settings = variable_get('charts_settings', array())) {
$requirements['charts']['title'] = t('Charts');
$requirements['charts']['value'] = t('Charts module not yet configured');
$requirements['charts']['severity'] = REQUIREMENT_ERROR;
$requirements['charts']['description'] = t('Charts core module needs to get some default options in order to operate. You must go to <a href="!link">settings page</a> and configure it.', array('!link' => url('admin/settings/charts')));
return $requirements; return $requirements;
} }
} }
......
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