action:topic.save, action:topic.restore, action:topic.edit changes


  • Admin

    If you have any plugins that use action:topic.save, action:topic.restore or action:topic.edit please read below on the changes coming in 0.6.0. If you have any questions about how to update to the new hooks please feel free to ask.

    The parameter passed to all three hooks has been changed from a topic id to a topicData object.

    plugins.fireHook('action:topic.save', topicData);
    plugins.fireHook('action:topic.restore', topicData);
    plugins.fireHook('action:topic.edit', topicData);

    topicData object contains at least the following data.

    {
       tid: 3,
       title: 'test topic',
       mainPid: 5
    }
    

Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.