Hello,
I try this very simple function
function deletesobientry() {
unlink ("images/com_artiprobat2/clients/65_thumb_1.jpg");
}
If I use this trigger:
$_PLUGINS->registerFunction( 'onAfterUserUpdate', 'deletesobientry', 'getchangeartiprobat2fieldTab' );
And I update a profil, the file is deleted.
But if I use this trigger:
$_PLUGINS->registerFunction( 'onBeforeDeleteUser', 'deletesobientry', 'getchangeartiprobat2fieldTab' );
And I delete a profil, the file is not deleted.
Why can I not delete a file when I delete an user?
Could you explain me, because I don't understand.
Thanks
Post edited by: alsab, at: 2010/07/26 14:09