From f31cc5c5faede4bd5d8542680793f230ddb257d1 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 3 Mar 2011 21:20:30 +0000 Subject: [PATCH] remove the not used special awards section --- api.php | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/api.php b/api.php index 3ae877a..e67a911 100644 --- a/api.php +++ b/api.php @@ -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