function statspro_optional_dependency_views_charts in Statistics Pro 6.2
1 call to statspro_optional_dependency_views_charts()
- statspro_main_admin_settings_form in ./
statspro_admin_settings.inc - Main admin settings form.
File
- ./
statspro_admin_settings.inc, line 196
Code
function statspro_optional_dependency_views_charts(&$form) {
$dependency_ok = module_exists('views_charts');
$form['optional_requirements']['views_charts_module_wrapper'] = array(
'#type' => 'fieldset',
'#title' => t('Views Charts module'),
'#collapsible' => TRUE,
'#collapsed' => $dependency_ok,
);
$message = "\n<p>" . t("The %views_charts_module module is required\n for producing graphs on comments, logs, nodes, page visualization and users\n reports.", array(
'%views_charts_module' => t('Views Charts'),
)) . "</p>\n";
$message .= "\n<p>" . t("The %views_charts_module module is currently %status.", array(
'%views_charts_module' => t('Views Charts'),
'%status' => $dependency_ok ? t('Enabled') : t('Disabled'),
)) . "</p>\n";
$form['optional_requirements']['views_charts_module_wrapper']['views_charts_module'] = array(
'#value' => $message,
);
}