remove the not used special awards section

This commit is contained in:
james 2011-03-03 21:20:30 +00:00
parent b1940cbb9a
commit f31cc5c5fa

31
api.php
View File

@ -1152,37 +1152,6 @@ switch($request[0]) {
$ret['status'] = 'ok';
break;
case 'specialawards':
switch($request[2]){
/* APIDOC: project/specialawards/view
description(view the special awards available, flagged as whether or not they're selected for this user's project.)
*/
case 'view':
$u = user_load($_SESSION['users_id']);
$projectId = getProjectId($u['registrations_id']);
if($projectId !== null){
$ret['status'] = 'ok';
$ret['awards'] = getAwardListing($projectId);
}else{
$ret['status'] = 'error';
$ret['error'] = 'could not load project for registriation id #' . $u['registrations_id'];
}
break;
/* APIDOC: project/specialawards/edit
description:(update the special awards assigned to this project)
post(awards array)
description(expects an array in the
*/
case 'edit':
//$nominations = json_decode($_POST['awards'], true);
break;
}
break;
case 'mentor':
switch($request[2]){
/* APIDOC: project/mentor/edit