function statspro_optional_dependency_advanced_help in Statistics Pro 6.2
1 call to statspro_optional_dependency_advanced_help()
- statspro_main_admin_settings_form in ./
statspro_admin_settings.inc - Main admin settings form.
File
- ./
statspro_admin_settings.inc, line 223
Code
function statspro_optional_dependency_advanced_help(&$form) {
$dependency_ok = module_exists('advanced_help');
$form['optional_requirements']['advanced_help_module_wrapper'] = array(
'#type' => 'fieldset',
'#title' => t('Advanced Help module'),
'#collapsible' => TRUE,
'#collapsed' => $dependency_ok,
);
$message = "\n<p>" . t("The %advanced_help_module module is required\n for presenting help info about Statistics Pro.", array(
'%advanced_help_module' => t('Advanced Help'),
)) . "</p>\n";
$message .= "\n<p>" . t("The %advanced_help_module module is currently %status.", array(
'%advanced_help_module' => t('Advanced Help'),
'%status' => $dependency_ok ? t('Enabled') : t('Disabled'),
)) . "</p>\n";
$form['optional_requirements']['advanced_help_module_wrapper']['advanced_help_module'] = array(
'#value' => $message,
);
}