drupal core updated to 7.28
This commit is contained in:
@@ -263,9 +263,7 @@ function statistics_access_log($aid) {
|
||||
);
|
||||
return $build;
|
||||
}
|
||||
else {
|
||||
drupal_not_found();
|
||||
}
|
||||
return MENU_NOT_FOUND;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -305,6 +303,17 @@ function statistics_settings_form() {
|
||||
'#default_value' => variable_get('statistics_count_content_views', 0),
|
||||
'#description' => t('Increment a counter each time content is viewed.'),
|
||||
);
|
||||
$form['content']['statistics_count_content_views_ajax'] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('Use Ajax to increment the counter'),
|
||||
'#default_value' => variable_get('statistics_count_content_views_ajax', 0),
|
||||
'#description' => t('Perform the count asynchronously after page load rather than during page generation.'),
|
||||
'#states' => array(
|
||||
'disabled' => array(
|
||||
':input[name="statistics_count_content_views"]' => array('checked' => FALSE),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
return system_settings_form($form);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user