/**
 * Fetch PM Settings
 * @param      $user_id
 * @param null $key - user_inbox, user_outbox, user_archive, user_pm_email_notify, user_pm_save_sent
 * @return array|bool|null
 */
function user_pm_settings($user_id, $key = NULL)
{
    return \PHPFusion\PrivateMessages::get_pm_settings($user_id, $key);
}
예제 #2
0
 /**
  * Send PM to a user or group
  *
  * @param        $to - Recepient Either group_id or user_id
  * @param        $from - Sender's user id
  * @param        $subject - Message subject
  * @param        $message - Message body
  * @param string $smileys - use smileys or not
  * @param bool   $to_group - set to true if sending to the entire user group's members
  */
 function send_pm($to, $from, $subject, $message, $smileys = "y", $to_group = false)
 {
     \PHPFusion\PrivateMessages::send_pm($to, $from, $subject, $message, $smileys, $to_group);
 }