function user_stats_admin_settings_validate in User Stats 5
Validate callback.
File
- ./
user_stats.module, line 165 - User Stats provides commonly requested user statistics for themers. These are:
Code
function user_stats_admin_settings_validate($form_id, $form_values) {
if ($form_values['op'] == t('Reset all post counts')) {
drupal_goto('admin/settings/user_stats/reset_post_count');
}
else {
if ($form_values['op'] == t('Reset all login counts')) {
drupal_goto('admin/settings/user_stats/reset_login_count');
}
}
// Rebuild post count stats when settings change.
variable_set('user_stats_rebuild_stats', TRUE);
user_stats_reset_counts('user_post_count');
}