Drupal: Add missing function to handle manual UOTD reset

(DBOINCP-213)
This commit is contained in:
Tristan Olive 2015-09-10 23:38:18 -04:00
parent a5daa967be
commit 4ae90d1f53
1 changed files with 9 additions and 0 deletions

View File

@ -84,6 +84,15 @@ function boinccore_admin_community_submit($form, &$form_state) {
drupal_set_message(t('BOINC community settings have been updated.')); drupal_set_message(t('BOINC community settings have been updated.'));
} }
/**
* Force a reset of the user of the day
*/
function boinccore_reset_user_of_the_day() {
if (boincuser_select_user_of_the_day()) {
drupal_set_message(t('The user of the day has been reset.'));
}
}
/** /**
* The standard page generator form provides an interface to create standard * The standard page generator form provides an interface to create standard
* pages, such as a Help or About page. * pages, such as a Help or About page.