Skip to content
Snippets Groups Projects
Commit ba02ee59 authored by Nathan Haug's avatar Nathan Haug
Browse files

Issue #1579254 by Steven Jones: Charts implements hook_requirements incorrectly.

parent a0a5b228
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ function charts_uninstall() { ...@@ -18,6 +18,7 @@ function charts_uninstall() {
* Implementation of hook_requirements(). * Implementation of hook_requirements().
*/ */
function charts_requirements($phase) { function charts_requirements($phase) {
$requirements = array();
// Test PHP version // Test PHP version
if (version_compare(phpversion(), CHARTS_MINIMUM_PHP) < 0) { if (version_compare(phpversion(), CHARTS_MINIMUM_PHP) < 0) {
$requirements['charts_php']['title'] = t('PHP Charts'); $requirements['charts_php']['title'] = t('PHP Charts');
...@@ -40,7 +41,5 @@ function charts_requirements($phase) { ...@@ -40,7 +41,5 @@ function charts_requirements($phase) {
$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/config/content/charts'))); $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/config/content/charts')));
} }
if (isset($requirements)) { 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