R3TROATTACK
Member
I am currently trying to accomplish this by extending the UserGroupChange service, but either manually adding a user to the group via the edit user page does not trigger this or I am extending the wrong thing.
Currently im just tring to make an error occur to show me im doing the right thing lol.
Any help would be greatly appreciated!
PHP:
<?php
namespace Retro\Sourcebans\Service\User;
class UserGroupChange extends XFCP_UserGroupChange
{
public function addUserGroupChange($userId, $key, $addGroups)
{
$this->app->logException(new \Exception(\XF::dumpSimple([$userId.$key, $addGroups])));
\XF::dump([$userId, $key, $addGroups]);
return false;
}
}
Currently im just tring to make an error occur to show me im doing the right thing lol.
Any help would be greatly appreciated!