Added wrapper for lookup_account RPC

(DBOINCP-184)
This commit is contained in:
Tristan Olive 2015-06-18 09:47:46 -04:00
parent d625dfdc6a
commit efb10a49cc
1 changed files with 18 additions and 0 deletions

View File

@ -62,6 +62,16 @@ function boinccore_menu() {
'type' => MENU_NORMAL_ITEM,
'file' => 'boinccore.admin.inc'
);
// BOINC RPC wrappers
$items['lookup_account.php'] = array(
'title' => 'Look up account RPC',
'description' => 'RPC for getting the authenticator for a user account.',
'page callback' => 'boinccore_lookup_account',
'access callback' => TRUE,
'type' => MENU_CALLBACK
);
return $items;
}
@ -424,6 +434,14 @@ function boinccore_comment_control($cid = NULL, $action = NULL) {
drupal_goto($return_path, NULL, $return_anchor);
}
/**
* Page callback for the look up account RPC (lookup_account.php).
* Get the authenticator for a given account
*/
function boinccore_lookup_account() {
include_boinc('user/lookup_account.php');
}
/**
* Controller for handling direct linking to paginated content.
* Because pagination settings are user configurable, it is impossible to know