# m_merge_topic

# Function

Function Name Description Level
m_merge_topic Ability to merge two topics into a single topic. From topic A to topic B, and keep topic B subject title.

Input Parameters:

Name Type Required? Description Level
topic_id String yes Topic A
topic_id String yes Topic B
redirect Boolean Indicate if a redirect link need to be created for merged topic. Default action will be done if it's not set. Flag 'advanced_merge' in get_config will indicate the support of this parameter.

Output Parameters:

Name Type Required? Description Level
result Boolean yes return true if the action is executed successfully.
result_text byte[] Reason of the failure, if any.
topic_id String For some forum system (like SMF), it does not support merge to a specified topic, and it always keep the older topic id for merged topic. In this case, plugin need return the target topic id
is_login_mod Boolean return true if user need to re-authenticate with login_mod function again before proceeding.