diff --git a/drupal/sites/default/boinc/modules/boinccore/boinccore.module b/drupal/sites/default/boinc/modules/boinccore/boinccore.module index b92be26f13..79f100bcc0 100644 --- a/drupal/sites/default/boinc/modules/boinccore/boinccore.module +++ b/drupal/sites/default/boinc/modules/boinccore/boinccore.module @@ -99,6 +99,13 @@ function boinccore_menu() { 'access callback' => TRUE, 'type' => MENU_CALLBACK ); + $items['pending.php'] = array( + 'title' => 'Pending credit RPC', + 'description' => 'RPC for getting pending credit for a given account.', + 'page callback' => 'boinccore_pending_credit', + 'access callback' => TRUE, + 'type' => MENU_CALLBACK + ); return $items; } @@ -592,6 +599,16 @@ function boinccore_show_user() { print save_configuration($xml); } +/** + * Page callback for the pending credit RPC (pending.php). + * Get pending credit information for a given account + */ +function boinccore_pending_credit() { + // Remove q from the GET request or BOINC will panic + unset($_GET['q']); + include_boinc('user/pending.php'); +} + /** * Controller for handling direct linking to paginated content. * Because pagination settings are user configurable, it is impossible to know