Function splitTopic
general function to split off a topic. creates a new topic and moves the messages with the IDs in array messagesToBeSplit to the new topic. the subject of the newly created topic is set to 'newSubject'. marks the newly created message as read for the user splitting it. updates the statistics to reflect a newly created topic. logs the action in the moderation log. a notification is sent to all users monitoring this topic.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/SplitTopics.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/SplitTopics.php
integer |
$split1_ID_TOPIC |
The ID of the topic we're splitting |
array |
$splitMessages |
The IDs of the messages being split |
string |
$new_subject |
The subject of the new topic |
integer
|
The ID of the new split topic. |