Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-31709 message: removed get_message_participants() as it is deprec…

…ated and should have been removed in 2.2
  • Loading branch information...
commit 8075c843ce1f00080f17ab971a79ff0434bc442e 1 parent 5bbf3cb
@andyjdavis andyjdavis authored
Showing with 0 additions and 20 deletions.
  1. +0 −20 message/lib.php
View
20 message/lib.php
@@ -2036,26 +2036,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
Please sign in to comment.
Something went wrong with that request. Please try again.