function statspro_optional_dependency_access_log in Statistics Pro 6.2
1 call to statspro_optional_dependency_access_log()
- statspro_main_admin_settings_form in ./
statspro_admin_settings.inc - Main admin settings form.
File
- ./
statspro_admin_settings.inc, line 121
Code
function statspro_optional_dependency_access_log(&$form) {
if (module_exists('statistics') && variable_get('statistics_enable_access_log', 0) == 0) {
$form['optional_requirements']['access_log_setting_wrapper'] = array(
'#type' => 'fieldset',
'#title' => t('Access logging settings'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$message = "\n<p>" . t("The core %statistics_module module is enabled but the\n %access_log_setting option in the !access_log page isn't. The\n %access_log_setting option is required for the following optional reports:", array(
'%statistics_module' => t('Statistics'),
'%access_log_setting' => t('Enable access log'),
'!access_log' => l(t('Access log settings'), 'admin/reports/settings'),
)) . "</p>\n";
$message .= sprintf(<<<LIST
<ul>
<li>%s</li>
<li>%s</li>
</ul>
LIST
, t('Path aggregated'), t('Page visualization'));
$form['optional_requirements']['access_log_setting_wrapper']['access_log_setting'] = array(
'#value' => $message,
);
}
}