Skip to content

Commit

Permalink
Merge branch 'MDL-31709_message_get_participants' of git://github.com…
Browse files Browse the repository at this point in the history
…/andyjdavis/moodle
  • Loading branch information
Aparup Banerjee committed Mar 13, 2012

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 66da1ab + 8075c84 commit fed36d5
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions message/lib.php
Original file line number Diff line number Diff line change
@@ -2035,26 +2035,6 @@ function message_post_message($userfrom, $userto, $message, $format) {
return message_send($eventdata);
}


/**
* Returns a list of all user ids who have used messaging in the site
* This was the simple way to code the SQL ... is it going to blow up
* on large datasets?
*
* @deprecated To be deleted in 2.2 MDL-31709
* @return array
*/
function message_get_participants() {
global $CFG, $DB;

return $DB->get_records_sql("SELECT useridfrom as id,1 FROM {message}
UNION SELECT useridto as id,1 FROM {message}
UNION SELECT useridfrom as id,1 FROM {message_read}
UNION SELECT useridto as id,1 FROM {message_read}
UNION SELECT userid as id,1 FROM {message_contacts}
UNION SELECT contactid as id,1 from {message_contacts}");
}

/**
* Print a row of contactlist displaying user picture, messages waiting and
* block links etc

0 comments on commit fed36d5

Please sign in to comment.