activateAccount

The activateAccount hook is triggered when a new front end account is activated.

Available

from Contao 2.4.3.

Parameters

  1. MemberModel $memberModel

    A model of the activated user account.

  2. object $registrationModule

    The registration module that was used to activate the account.

Example

<?php

// config.php
$GLOBALS['TL_HOOKS']['activateAccount'][] = array('MyClass', 'myActivateAccount');

// MyClass.php
public function myActivateAccount(MemberModel $memberModel, ModuleRegistration $registrationModule)
{
    // Do something
}

More information

References

See also

results matching ""

    No results matching ""