Classes/Hook/DataHandlerHook.php
public function processDatamap_postProcessFieldArray($status, $table, $id, array &$fieldArray, DataHandler $pObj)
    {
        if ($table === 'tt_address' && $status === 'new') {
            if (empty($fieldArray['registeraddresshash'])) {
                $rnd = microtime(true) . random_int(10000, 90000);
                $regHash = sha1($fieldArray['email'] . $rnd);

                $fieldArray['registeraddresshash'] = $regHash;
            }
        }
    }
public function processDatamap_postProcessFieldArray($status, $table, $id, array &$fieldArray, DataHandler $pObj)
    {
        if ($table === 'tt_address' && $status === 'new') {
            if (empty($fieldArray['registeraddresshash'])) {
                $rnd = microtime(true) . random_int(10000, 90000);
                $regHash = sha1($fieldArray['email'] . $rnd);

                $fieldArray['registeraddresshash'] = $regHash;
            }
        }
    }
public function processDatamap_postProcessFieldArray ( $ status , $ table , $ id , array & $ fieldArray , DataHandler $ pObj ) { if ( $ table === 'tt_address' && $ status === 'new' ) { if ( empty ( $ fieldArray [ 'registeraddresshash' ] ) ) { $ rnd = microtime ( true ) . random_int ( 10000 , 90000 ) ; $ regHash = sha1 ( $ fieldArray [ 'email' ] . $ rnd ) ; $ fieldArray [ 'registeraddresshash' ] = $ regHash ; } } }
Hook method for postProcessFieldArray
@param $status
@param $table
@param $id
@param array $fieldArray
@param DataHandler $pObj
@return void
Hook method for postProcessFieldArray