/** * Unsubscribe a user from a thread. * * @param integer $user_id * The id of the user to remove the subscription for. * * @param integer $thread * The id of the thread to describe from. * * @param integer $forum_id * The id of the forum in which the thread to unsubscribe from resides. * This parameter can be 0 (zero) to simply unsubscribe by thread id alone. */ function phorum_api_user_unsubscribe($user_id, $thread, $forum_id = 0) { // Remove the subscription. phorum_db_user_unsubscribe($user_id, $thread, $forum_id); }
function phorum_user_unsubscribe( $user_id, $thread, $forum_id=0 ) { if($forum_id){ return phorum_db_user_unsubscribe( $user_id, $thread, $forum_id ); } else { return phorum_db_user_unsubscribe( $user_id, $thread ); } }