function _better_statistics_form_system_performance_settings_alter in Better Statistics 7
Makes alterations to the core site performance settings configuration form.
1 call to _better_statistics_form_system_performance_settings_alter()
File
- ./
better_statistics.admin.inc, line 209 - Admin and config code for the Better Statistics module.
Code
function _better_statistics_form_system_performance_settings_alter(&$form, &$form_state, $form_id) {
$form['caching']['statistics_access_log_restrictions_cache'] = array(
'#type' => 'checkbox',
'#title' => t('Log access statistics for pages served from cache'),
'#description' => t('Logging access statistics on cached page requests can negatively impact performance and scalability.'),
'#default_value' => variable_get('statistics_access_log_restrictions_cache', TRUE),
// Only show this field if caching is enabled.
'#states' => array(
'visible' => array(
':input[name="cache"]' => array(
'checked' => TRUE,
),
),
),
);
}