CHARTS_MINIMUM_PHP)); $requirements['charts_php']['severity'] = REQUIREMENT_ERROR; } 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; $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.'); } 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 settings page and configure it.', array('!link' => url('admin/settings/charts'))); } if (isset($requirements)) { return $requirements; } }