Drupal: Add pass-through wrapper for get_project_config RPC

https://dev.gridrepublic.org/browse/DBOINCP-184
This commit is contained in:
Tristan Olive 2016-07-14 10:32:08 -04:00
parent 4a6c20e043
commit 93e10d91ce
1 changed files with 14 additions and 0 deletions

View File

@ -132,6 +132,12 @@ function boincwork_menu() {
'access arguments' => array('access content'),
'type' => MENU_CALLBACK
);
$items['get_project_config.php'] = array(
'title' => 'Project config',
'page callback' => 'boincwork_get_project_config',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK
);
return $items;
}
@ -1025,6 +1031,14 @@ function boincwork_server_status() {
include_boinc('user/server_status.php');
}
/**
* Page callback for the project config RPC (get_project_config.php).
* Get the project configuration XML; used by client software
*/
function boincwork_get_project_config() {
include_boinc('user/get_project_config.php');
}
/**
* Generic page callback