mirror of https://github.com/BOINC/boinc.git
Drupal: Add pass-through wrapper for get_project_config RPC
https://dev.gridrepublic.org/browse/DBOINCP-184
This commit is contained in:
parent
4a6c20e043
commit
93e10d91ce
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue