You could use the createNewUser hook, which triggers on registration.
The hook needs to be registered in a config file
Code:
$GLOBALS['TL_HOOKS']['createNewUser'][] = array('ClassName', 'functionName');
and the Class added somewhere - so you might need to make a little module to do this.
ClassName.php
Code:
<?php if (!defined('TL_ROOT')) die('You can not access this file directly!');
class ClassName extends Backend
{
public function functionName($intId, $arrData)
{
$operatorAndPhone = $arrData['operator'] .'-'. $arrData['phone'];
$this->Database->prepare("UPDATE tl_member SET newfieldName=? WHERE id=?")
->limit(1)
->execute($operatorAndPhone,$intId);
}
}
?>
Bookmarks