Skip to content

Commit

Permalink
Merge branch 'master_MDL-31942' of git://github.com/danmarsden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Aparup Banerjee committed Mar 13, 2012
2 parents 387fb66 + eb3a62d commit 42c8e4d
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions mod/choice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,29 +587,6 @@ function choice_delete_instance($id) {
return $result;
}

/**
* Returns the users with data in one choice
* (users with records in choice_responses, students)
*
* @todo: deprecated - to be deleted in 2.2
*
* @param int $choiceid
* @return array
*/
function choice_get_participants($choiceid) {
global $DB;

//Get students
$students = $DB->get_records_sql("SELECT DISTINCT u.id, u.id
FROM {user} u,
{choice_answers} a
WHERE a.choiceid = ? AND
u.id = a.userid", array($choiceid));

//Return students array (it contains an array of unique users)
return ($students);
}

/**
* Returns text string which is the answer that matches the id
*
Expand Down

0 comments on commit 42c8e4d

Please sign in to comment.