Is there an easy way to grab the node id in XFCP_Preparer?
I have a function working to force using set domains in a post or an error message is displayed, this works globally, I have added forumID array in settings, but cant call node_id when posting.
Thanks
I have a function working to force using set domains in a post or an error message is displayed, this works globally, I have added forumID array in settings, but cant call node_id when posting.
Thanks
Code:
namespace Tango\Whitelist\XF\Service\Message;
class Preparer extends XFCP_Preparer
{
public function checkValidity($message)
{
// get parent
$parent = parent::checkValidity($message);