|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | message |
Enumerations | |
| enum | MESSAGE_SHORTLENGTH |
| enum | MESSAGE_DISCUSSION_WIDTH |
| enum | MESSAGE_DISCUSSION_HEIGHT |
| enum | MESSAGE_SHORTVIEW_LIMIT |
| enum | MESSAGE_HISTORY_SHORT |
| enum | MESSAGE_HISTORY_ALL |
| enum | MESSAGE_VIEW_UNREAD_MESSAGES |
| enum | MESSAGE_VIEW_RECENT_CONVERSATIONS |
| enum | MESSAGE_VIEW_RECENT_NOTIFICATIONS |
| enum | MESSAGE_VIEW_CONTACTS |
| enum | MESSAGE_VIEW_BLOCKED |
| enum | MESSAGE_VIEW_COURSE |
| enum | MESSAGE_VIEW_SEARCH |
| enum | MESSAGE_SEARCH_MAX_RESULTS |
| enum | MESSAGE_CONTACTS_PER_PAGE |
| enum | MESSAGE_MAX_COURSE_NAME_LENGTH |
| enum | MESSAGE_DEFAULT_LOGGEDIN |
| enum | MESSAGE_DEFAULT_LOGGEDOFF |
| enum | MESSAGE_DISALLOWED |
| enum | MESSAGE_PERMITTED |
| enum | MESSAGE_FORCED |
| enum | MESSAGE_PERMITTED_MASK |
| enum | MESSAGE_DEFAULT_PERMITTED |
Functions | |
| if(!isset($CFG-> message_contacts_refresh)) if(!isset($CFG-> message_chat_refresh)) if(!isset($CFG-> message_offline_time)) | message_print_contact_selector ($countunreadtotal, $viewing, $user1, $user2, $blockedusers, $onlinecontacts, $offlinecontacts, $strangers, $showcontactactionlinks, $page=0) |
| message_print_participants ($context, $courseid, $contactselecturl=null, $showactionlinks=true, $titletodisplay=null, $page=0, $user2=null) | |
| message_get_blocked_users ($user1=null, $user2=null) | |
| message_print_blocked_users ($blockedusers, $contactselecturl=null, $showactionlinks=true, $titletodisplay=null, $user2=null) | |
| message_get_contacts ($user1=null, $user2=null) | |
| message_print_contacts ($onlinecontacts, $offlinecontacts, $strangers, $contactselecturl=null, $minmessages=0, $showactionlinks=true, $titletodisplay=null, $user2=null) | |
| message_print_usergroup_selector ($viewing, $courses, $coursecontexts, $countunreadtotal, $countblocked, $strunreadmessages) | |
| message_get_course_contexts ($courses) | |
| message_remove_url_params ($moodleurl) | |
| message_count_messages ($messagearray, $field='', $value='') | |
| message_count_unread_messages ($user1=null, $user2=null) | |
| message_count_blocked_users ($user1=null) | |
| message_print_search ($advancedsearch=false, $user1=null) | |
| message_get_recent_conversations ($user, $limitfrom=0, $limitto=100) | |
| conversationsort ($a, $b) | |
| message_get_recent_notifications ($user, $limitfrom=0, $limitto=100) | |
| message_print_recent_conversations ($user=null, $showicontext=false) | |
| message_print_recent_notifications ($user=null) | |
| message_print_recent_messages_table ($messages, $user=null, $showotheruser=true, $showicontext=false) | |
| message_add_contact ($contactid, $blocked=0) | |
| message_remove_contact ($contactid) | |
| message_unblock_contact ($contactid) | |
| message_block_contact ($contactid) | |
| message_get_contact ($contactid) | |
| message_print_search_results ($frm, $showicontext=false, $currentuser=null) | |
| message_print_user ($user=false, $iscontact=false, $isblocked=false, $includeicontext=false) | |
| message_contact_link ($userid, $linktype='add', $return=false, $script=null, $text=false, $icon=true) | |
| message_history_link ($userid1, $userid2, $return=false, $keywords='', $position='', $linktext='') | |
| message_search_users ($courseid, $searchtext, $sort='', $exceptions='') | |
| message_search ($searchterms, $fromme=true, $tome=true, $courseid='none', $userid=0) | |
| message_shorten_message ($message, $minlength=0) | |
| message_get_fragment ($message, $keywords) | |
| message_get_history ($user1, $user2, $limitnum=0, $viewingnewmessages=false) | |
| message_print_message_history ($user1, $user2, $search='', $messagelimit=0, $messagehistorylink=false, $viewingnewmessages=false) | |
| message_format_message ($message, $format='', $keywords='', $class='other') | |
| message_format_contexturl ($message) | |
| message_post_message ($userfrom, $userto, $message, $format) | |
| message_get_participants () | |
| message_print_contactlist_user ($contact, $incontactlist=true, $isblocked=false, $selectcontacturl=null, $showactionlinks=true, $selecteduser=null) | |
| message_get_contact_add_remove_link ($incontactlist, $isblocked, $contact, $script=null, $text=false, $icon=true) | |
| message_get_contact_block_link ($incontactlist, $isblocked, $contact, $script=null, $text=false, $icon=true) | |
| message_move_userfrom_unread2read ($userid) | |
| message_mark_messages_read ($touserid, $fromuserid) | |
| message_mark_message_read ($message, $timeread, $messageworkingempty=false) | |
| message_print_heading ($title, $colspan=3) | |
| get_message_processors ($ready=false) | |
| get_message_processor ($type) | |
| get_message_output_default_preferences () | |
| translate_message_default_setting ($plugindefault, $processorname) | |
| message_page_type_list ($pagetype, $parentcontext, $currentcontext) | |
Define contants for messaging default settings population. For unambiguity of plugin developer intentions we use 4-bit value (LSB numbering): bit 0 - whether to send message when user is loggedin (MESSAGE_DEFAULT_LOGGEDIN) bit 1 - whether to send message when user is loggedoff (MESSAGE_DEFAULT_LOGGEDOFF) bit 2..3 - messaging permission (MESSAGE_DISALLOWED|MESSAGE_PERMITTED|MESSAGE_FORCED)
MESSAGE_PERMITTED_MASK contains the mask we use to distinguish permission setting
| enum MESSAGE_DISALLOWED |
| enum MESSAGE_FORCED |
| enum MESSAGE_HISTORY_ALL |
| enum MESSAGE_PERMITTED |
| enum MESSAGE_SHORTLENGTH |
| enum MESSAGE_VIEW_BLOCKED |
| enum MESSAGE_VIEW_COURSE |
| enum MESSAGE_VIEW_SEARCH |
| conversationsort | ( | $ | a, |
| $ | b | ||
| ) |
| get_message_processor | ( | $ | type | ) |
Get an instance of the message_output class for one of the output plugins.
| string | $type | the message output type. E.g. 'email' or 'jabber'. |
Definition at line 2321 of file lib.php.

| get_message_processors | ( | $ | ready = false | ) |
Get all message processors, validate corresponding plugin existance and system configuration
| bool | $ready | only return ready-to-use processors |
Definition at line 2269 of file lib.php.


| message_add_contact | ( | $ | contactid, |
| $ | blocked = 0 |
||
| ) |
Add the selected user as a contact for the current user
| int | $contactid | the ID of the user to add as a contact |
| int | $blocked | 1 if you wish to block the contact |
record already exists - we may be changing blocking status
change to blocking status
no changes to blocking status
new contact record
Definition at line 930 of file lib.php.

| message_block_contact | ( | $ | contactid | ) |
| message_contact_link | ( | $ | userid, |
| $ | linktype = 'add', |
||
| $ | return = false, |
||
| $ | script = null, |
||
| $ | text = false, |
||
| $ | icon = true |
||
| ) |
Print a message contact link
type $str
| int | $userid | the ID of the user to apply to action to |
| string | $linktype | can be add, remove, block or unblock |
| bool | $return | if true return the link as a string. If false echo the link. |
| string | $script | the URL to send the user to when the link is clicked. If null, the current page. |
| bool | $text | include text next to the icons? |
| bool | $icon | include a graphical icon? |
Definition at line 1335 of file lib.php.


| message_count_blocked_users | ( | $ | user1 = null | ) |
| message_count_messages | ( | $ | messagearray, |
| $ | field = '', |
||
| $ | value = '' |
||
| ) |
Count the number of messages with a field having a specified value. if $field is empty then return count of the whole array if $field is non-existent then return 0
| array | $messagearray | array of message objects |
| string | $field | the field to inspect on the message objects |
| string | $value | the value to test the field against |
| message_count_unread_messages | ( | $ | user1 = null, |
| $ | user2 = null |
||
| ) |
Returns the count of unread messages for user. Either from a specific user or from all users.
| object | $user1 | the first user. Defaults to $USER |
| object | $user2 | the second user. If null this function will count all of user 1's unread messages. |
| message_format_contexturl | ( | $ | message | ) |
| message_format_message | ( | $ | message, |
| $ | format = '', |
||
| $ | keywords = '', |
||
| $ | class = 'other' |
||
| ) |
Format a message for display in the message history
| object | $message | the message object |
| string | $format | optional date format |
| string | $keywords | keywords to highlight |
| string | $class | CSS class to apply to the div around the message |
Definition at line 1933 of file lib.php.


| message_get_blocked_users | ( | $ | user1 = null, |
| $ | user2 = null |
||
| ) |
Retrieve users blocked by $user1
| object | $user1 | the user whose messages are being viewed |
| object | $user2 | the user $user1 is talking to. If they are being blocked they will have a variable called 'isblocked' added to their user object |
Definition at line 221 of file lib.php.

| message_get_contact | ( | $ | contactid | ) |
| message_get_contact_add_remove_link | ( | $ | incontactlist, |
| $ | isblocked, | ||
| $ | contact, | ||
| $ | script = null, |
||
| $ | text = false, |
||
| $ | icon = true |
||
| ) |
Constructs the add/remove contact link to display next to other users
| bool | $incontactlist | is the user a contact |
| bool | $isblocked | is the user blocked |
| type | $contact | contact object |
| string | $script | the URL to send the user to when the link is clicked. If null, the current page. |
| bool | $text | include text next to the icons? |
| bool | $icon | include a graphical icon? |
Definition at line 2144 of file lib.php.


| message_get_contact_block_link | ( | $ | incontactlist, |
| $ | isblocked, | ||
| $ | contact, | ||
| $ | script = null, |
||
| $ | text = false, |
||
| $ | icon = true |
||
| ) |
Constructs the block contact link to display next to other users
| bool | $incontactlist | is the user a contact |
| bool | $isblocked | is the user blocked |
| type | $contact | contact object |
| string | $script | the URL to send the user to when the link is clicked. If null, the current page. |
| bool | $text | include text next to the icons? |
| bool | $icon | include a graphical icon? |
Definition at line 2169 of file lib.php.

| message_get_contacts | ( | $ | user1 = null, |
| $ | user2 = null |
||
| ) |
Retrieve $user1's contacts (online, offline and strangers)
| object | $user1 | the user whose messages are being viewed |
| object | $user2 | the user $user1 is talking to. If they are a contact they will have a variable called 'iscontact' added to their user object |
Definition at line 302 of file lib.php.

| message_get_course_contexts | ( | $ | courses | ) |
| message_get_fragment | ( | $ | message, |
| $ | keywords | ||
| ) |
Given a string and an array of keywords, this function looks for the first keyword in the string, and then chops out a small section from the text that shows that word in context.
| string | $message | the text to search |
| array | $keywords | array of keywords to find |
Find the start of the fragment
Find the end of the fragment
Pull out the fragment and format it
Definition at line 1726 of file lib.php.


| message_get_history | ( | $ | user1, |
| $ | user2, | ||
| $ | limitnum = 0, |
||
| $ | viewingnewmessages = false |
||
| ) |
Retrieve the messages between two users
| object | $user1 | the current user |
| object | $user2 | the other user |
| int | $limitnum | the maximum number of messages to retrieve |
| bool | $viewingnewmessages | are we currently viewing new messages? |
Definition at line 1776 of file lib.php.

| message_get_recent_conversations | ( | $ | user, |
| $ | limitfrom = 0, |
||
| $ | limitto = 100 |
||
| ) |
Get the users recent conversations meaning all the people they've recently sent or received a message from plus the most recent message sent to or received from each other user
| object | $user | the current user |
| int | $limitfrom | can be used for paging |
| int | $limitto | can be used for paging |
Definition at line 677 of file lib.php.


| message_get_recent_notifications | ( | $ | user, |
| $ | limitfrom = 0, |
||
| $ | limitto = 100 |
||
| ) |
| message_history_link | ( | $ | userid1, |
| $ | userid2, | ||
| $ | return = false, |
||
| $ | keywords = '', |
||
| $ | position = '', |
||
| $ | linktext = '' |
||
| ) |
echo or return a link to take the user to the full message history between themselves and another user
type $strmessagehistory
| int | $userid1 | the ID of the user displayed on the left (usually the current user) |
| int | $userid2 | the ID of the other user |
| bool | $return | true to return the link as a string. False to echo the link. |
| string | $keywords | any keywords to highlight in the message history |
| string | $position | anchor name to jump to within the message history |
| string | $linktext | optionally specify the link text |
Definition at line 1411 of file lib.php.

| message_mark_message_read | ( | $ | message, |
| $ | timeread, | ||
| $ | messageworkingempty = false |
||
| ) |
Mark a single message as read
| message | an object with an object property ie $message->id which is an id in the message table | |
| int | $timeread | the timestamp for when the message should be marked read. Usually time(). |
| bool | $messageworkingempty | Is the message_working table already confirmed empty for this message? |
Definition at line 2232 of file lib.php.

| message_mark_messages_read | ( | $ | touserid, |
| $ | fromuserid | ||
| ) |
| message_move_userfrom_unread2read | ( | $ | userid | ) |
Moves messages from a particular user from the message table (unread messages) to message_read This is typically only used when a user is deleted
| object | $userid | User id |
Definition at line 2192 of file lib.php.


| message_page_type_list | ( | $ | pagetype, |
| $ | parentcontext, | ||
| $ | currentcontext | ||
| ) |
| message_post_message | ( | $ | userfrom, |
| $ | userto, | ||
| $ | message, | ||
| $ | format | ||
| ) |
Send a message from one user to another. Will be delivered according to the message recipients messaging preferences
| object | $userfrom | the message sender |
| object | $userto | the message recipient |
| string | $message | the message |
| int | $format | message format such as FORMAT_PLAIN or FORMAT_HTML |
Definition at line 2004 of file lib.php.


| message_print_blocked_users | ( | $ | blockedusers, |
| $ | contactselecturl = null, |
||
| $ | showactionlinks = true, |
||
| $ | titletodisplay = null, |
||
| $ | user2 = null |
||
| ) |
Print users blocked by $user1. Called by message_print_contact_selector()
| array | $blockedusers | the users blocked by $user1 |
| string | $contactselecturl | the url to send the user to when a contact's name is clicked |
| bool | $showactionlinks | show action links (add/remove contact etc) next to the users |
| string | $titletodisplay | Optionally specify a title to display above the participants |
| object | $user2 | the user $user1 is talking to. They will be highlighted if they appear in the list of blocked users |
Definition at line 266 of file lib.php.


| if (!isset($CFG->message_contacts_refresh)) if (!isset($CFG->message_chat_refresh)) if (!isset($CFG->message_offline_time)) message_print_contact_selector | ( | $ | countunreadtotal, |
| $ | viewing, | ||
| $ | user1, | ||
| $ | user2, | ||
| $ | blockedusers, | ||
| $ | onlinecontacts, | ||
| $ | offlinecontacts, | ||
| $ | strangers, | ||
| $ | showcontactactionlinks, | ||
| $ | page = 0 |
||
| ) |
Print the selector that allows the user to view their contacts, course participants, their recent conversations etc
| int | $countunreadtotal | how many unread messages does the user have? |
| int | $viewing | What is the user viewing? ie MESSAGE_VIEW_UNREAD_MESSAGES, MESSAGE_VIEW_SEARCH etc |
| object | $user1 | the user whose messages are being viewed |
| object | $user2 | the user $user1 is talking to |
| array | $blockedusers | an array of users blocked by $user1 |
| array | $onlinecontacts | an array of $user1's online contacts |
| array | $offlinecontacts | an array of $user1's offline contacts |
| array | $strangers | an array of users who have messaged $user1 who aren't contacts |
| bool | $showcontactactionlinks | show action links (add/remove contact etc) next to the users in the contact selector |
| int | $page | if there are so many users listed that they have to be split into pages what page are we viewing |
Definition at line 108 of file lib.php.

| message_print_contactlist_user | ( | $ | contact, |
| $ | incontactlist = true, |
||
| $ | isblocked = false, |
||
| $ | selectcontacturl = null, |
||
| $ | showactionlinks = true, |
||
| $ | selecteduser = null |
||
| ) |
Print a row of contactlist displaying user picture, messages waiting and block links etc
| object | $contact | contact object containing all fields required for $OUTPUT->user_picture() |
| bool | $incontactlist | is the user a contact of ours? |
| bool | $isblocked | is the user blocked? |
| string | $selectcontacturl | the url to send the user to when a contact's name is clicked |
| bool | $showactionlinks | display action links next to the other users (add contact, block user etc) |
| object | $selecteduser | the user the current user is viewing (if any). They will be highlighted. |
are there any unread messages for this contact?
Definition at line 2077 of file lib.php.


| message_print_contacts | ( | $ | onlinecontacts, |
| $ | offlinecontacts, | ||
| $ | strangers, | ||
| $ | contactselecturl = null, |
||
| $ | minmessages = 0, |
||
| $ | showactionlinks = true, |
||
| $ | titletodisplay = null, |
||
| $ | user2 = null |
||
| ) |
Print $user1's contacts. Called by message_print_contact_selector()
| array | $onlinecontacts | $user1's contacts which are online |
| array | $offlinecontacts | $user1's contacts which are offline |
| array | $strangers | users which are not contacts but who have messaged $user1 |
| string | $contactselecturl | the url to send the user to when a contact's name is clicked |
| int | $minmessages | The minimum number of unread messages required from a user for them to be displayed Typically 0 (show all contacts) or 1 (only show contacts from whom we have a new message) |
| bool | $showactionlinks | show action links (add/remove contact etc) next to the users |
| string | $titletodisplay | Optionally specify a title to display above the participants |
| object | $user2 | the user $user1 is talking to. They will be highlighted if they appear in the list of contacts |
print out list of online contacts
print out list of offline contacts
print out list of incoming contacts
Definition at line 389 of file lib.php.


| message_print_heading | ( | $ | title, |
| $ | colspan = 3 |
||
| ) |
| message_print_message_history | ( | $ | user1, |
| $ | user2, | ||
| $ | search = '', |
||
| $ | messagelimit = 0, |
||
| $ | messagehistorylink = false, |
||
| $ | viewingnewmessages = false |
||
| ) |
Print the message history between two users
| object | $user1 | the current user |
| object | $user2 | the other user |
| string | $search | search terms to highlight |
| int | $messagelimit | maximum number of messages to return |
| string | $messagehistorylink | the html for the message history link or false |
| bool | $viewingnewmessages | are we currently viewing new messages? |
Get all the messages and print them
Definition at line 1834 of file lib.php.

| message_print_participants | ( | $ | context, |
| $ | courseid, | ||
| $ | contactselecturl = null, |
||
| $ | showactionlinks = true, |
||
| $ | titletodisplay = null, |
||
| $ | page = 0, |
||
| $ | user2 = null |
||
| ) |
Print course participants. Called by message_print_contact_selector()
| object | $context | the course context |
| int | $courseid | the course ID |
| string | $contactselecturl | the url to send the user to when a contact's name is clicked |
| bool | $showactionlinks | show action links (add/remove contact etc) next to the users |
| string | $titletodisplay | Optionally specify a title to display above the participants |
| int | $page | if there are so many users listed that they have to be split into pages what page are we viewing |
| object | $user2 | the user $user1 is talking to. They will be highlighted if they appear in the list of participants |
Definition at line 181 of file lib.php.


| message_print_recent_conversations | ( | $ | user = null, |
| $ | showicontext = false |
||
| ) |
| message_print_recent_messages_table | ( | $ | messages, |
| $ | user = null, |
||
| $ | showotheruser = true, |
||
| $ | showicontext = false |
||
| ) |
Print a list of recent messages
type $dateformat
| array | $messages | the messages to display |
| object | $user | the current user |
| bool | $showotheruser | display information on the other user? |
| bool | $showicontext | show text next to the action icons? |
not blocked
Definition at line 857 of file lib.php.


| message_print_recent_notifications | ( | $ | user = null | ) |
| message_print_search | ( | $ | advancedsearch = false, |
| $ | user1 = null |
||
| ) |
| message_print_search_results | ( | $ | frm, |
| $ | showicontext = false, |
||
| $ | currentuser = null |
||
| ) |
Print the results of a message search
| mixed | $frm | submitted form data |
| bool | $showicontext | show text next to action icons? |
| object | $currentuser | the current user |
search for person
not blocked
get a list of contacts
print heading with number of results
print table headings
ignore messages to and from blocked users unless $frm->includeblocked is set
load up user to record
load up user from record
find date string for this message
print out message row
Definition at line 1009 of file lib.php.


| message_print_user | ( | $ | user = false, |
| $ | iscontact = false, |
||
| $ | isblocked = false, |
||
| $ | includeicontext = false |
||
| ) |
Print information on a user. Used when printing search results.
| object/bool | $user the user to display or false if you just want $USER | |
| bool | $iscontact | is the user being displayed a contact? |
| bool | $isblocked | is the user being displayed blocked? |
| bool | $includeicontext | include text next to the action icons? |
Definition at line 1283 of file lib.php.


| message_print_usergroup_selector | ( | $ | viewing, |
| $ | courses, | ||
| $ | coursecontexts, | ||
| $ | countunreadtotal, | ||
| $ | countblocked, | ||
| $ | strunreadmessages | ||
| ) |
Print a select box allowing the user to choose to view new messages, course participants etc.
Called by message_print_contact_selector()
| int | $viewing | What page is the user viewing ie MESSAGE_VIEW_UNREAD_MESSAGES, MESSAGE_VIEW_RECENT_CONVERSATIONS etc |
| array | $courses | array of course objects. The courses the user is enrolled in. |
| array | $coursecontexts | array of course contexts. Keyed on course id. |
| int | $countunreadtotal | how many unread messages does the user have? |
| int | $countblocked | how many users has the current user blocked? |
| string | $strunreadmessages | a preconstructed message about the number of unread messages the user has |
Definition at line 472 of file lib.php.


| message_remove_contact | ( | $ | contactid | ) |
remove a contact
| type | $contactid | the user ID of the contact to remove |
| message_remove_url_params | ( | $ | moodleurl | ) |
strip off action parameters like 'removecontact'
| moodle_url/string | $moodleurl a URL. Typically the current page URL. |
Definition at line 540 of file lib.php.

| message_search | ( | $ | searchterms, |
| $ | fromme = true, |
||
| $ | tome = true, |
||
| $ | courseid = 'none', |
||
| $ | userid = 0 |
||
| ) |
search a user's messages
| array | $searchterms | an array of search terms (strings) |
| bool | $fromme | include messages from the user? |
| bool | $tome | include messages to the user? |
| mixed | $courseid | SITEID for admins searching all messages. Other behaviour not yet implemented |
| int | $userid | the user ID of the current user |
Returns a list of posts found using an array of search terms eg word +word -word
If no userid sent then assume current user
Some differences in SQL syntax
Initially we aren't going to perform NOT LIKE searches, only MSSQL and Oracle
Under Oracle and MSSQL, trim the + and - operators and perform simpler LIKE search
There are several possibilities 1. courseid = SITEID : The admin is searching messages by all users 2. courseid = ?? : A teacher is searching messages by users in one of their courses - currently disabled 3. courseid = none : User is searching their own messages; a. Messages from user b. Messages to user c. Messages to and from user
admin is searching all messages
This has not been implemented due to security concerns
The keys may be duplicated in $m_read and $m_unread so we can't do a simple concatenation
Definition at line 1532 of file lib.php.

| message_search_users | ( | $ | courseid, |
| $ | searchtext, | ||
| $ | sort = '', |
||
| $ | exceptions = '' |
||
| ) |
Search through course users
If $coursid specifies the site course then this function searches through all undeleted and confirmed users
| int | $courseid | The course in question. |
| string | $searchtext | the text to search for |
| string | $sort | the column name to order by |
| string | $exceptions | comma separated list of user IDs to exclude |
Definition at line 1472 of file lib.php.


| message_shorten_message | ( | $ | message, |
| $ | minlength = 0 |
||
| ) |
Given a message object that we already know has a long message this function truncates the message nicely to the first sane place between $CFG->forum_longpost and $CFG->forum_shortpost
| string | $message | the message |
| int | $minlength | the minimum length to trim the message to |
Definition at line 1671 of file lib.php.

| message_unblock_contact | ( | $ | contactid | ) |
Unblock a contact. Note that this reverts the previously blocked user back to a non-contact.
| int | $contactid | the user ID of the contact to unblock |
| translate_message_default_setting | ( | $ | plugindefault, |
| $ | processorname | ||
| ) |
Translate message default settings from binary value to the array of string representing the settings to be stored. Also validate the provided value and use default if it is malformed.
| int | $plugindefault | Default setting suggested by plugin |
| string | $processorname | The name of processor |
Definition at line 2362 of file lib.php.

