[TYPO3-mvc] sr_feuser_register, set tx_extbase_type
Stephan Petzl
spetzl at gmx.at
Tue Jan 18 15:37:25 CET 2011
Am 17.01.11 22:00, schrieb Tim Schoch | GSTALTIG:
> Hi Stephan
>
> Would you mind to post (or mail it to me) your hook?
>
> Gruess Tim
>
> GSTALTIG GMBH / www.gstaltig.ch
> Sonnenhofstr. 13 / 6020 Emmenbrücke
> tim at gstaltig.ch / 076 488 24 97
>
in some extension ext_localconf.php:
$TYPO3_CONF_VARS['EXTCONF']['sr_feuser_register']['tx_srfeuserregister_pi1']['registrationProcess'][]
=
'EXT:ajado_registration_adaption/hooks/class.tx_srfeuserregister_hook.php:&tx_srfeuserregister_hook';
and then the hook:
class tx_srfeuserregister_hook{
/**
*
* @var t3lib_DB
*/
private $db;
function registrationProcess_afterSaveCreate($recordArray, &$invokingObj) {
//debug($recordArray);
$row['image'] = 'default_avatar.jpg';
$row['tx_extbase_type'] =
'Tx_AjadoProfiles_Domain_Model_FrontendUser';
$this->db = $GLOBALS['TYPO3_DB'];
$this->db->exec_UPDATEquery('fe_users','uid='.$recordArray['uid'],$row);
}
...
}
--
Best Regards
Stephan Petzl
http://www.ajado.com
More information about the TYPO3-project-typo3v4mvc
mailing list