From 4ae90d1f5315bef4fde8b2745621bf941e893849 Mon Sep 17 00:00:00 2001 From: Tristan Olive Date: Thu, 10 Sep 2015 23:38:18 -0400 Subject: [PATCH] Drupal: Add missing function to handle manual UOTD reset (DBOINCP-213) --- .../default/boinc/modules/boinccore/boinccore.admin.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drupal/sites/default/boinc/modules/boinccore/boinccore.admin.inc b/drupal/sites/default/boinc/modules/boinccore/boinccore.admin.inc index d8442d19da..3650f0d561 100644 --- a/drupal/sites/default/boinc/modules/boinccore/boinccore.admin.inc +++ b/drupal/sites/default/boinc/modules/boinccore/boinccore.admin.inc @@ -84,6 +84,15 @@ function boinccore_admin_community_submit($form, &$form_state) { 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 * pages, such as a Help or About page.