I'm using in a table the following fields: Mutator and Creator (both Varchr).
When I insert a record I would like to set de Mutator field = Creator Field
I'm already using the automatic value for these fields: <%%editorUsername%%> and <%%creatorUsername%%>
This works well after I edit the record but I also want to fill field Mutator at an Insertion.
If I put this code in de Hooks file I don't see any result
Code: Select all
function acties_after_insert($data, $memberInfo, &$args){
// record mutator = creator
$data['Mutator'] = $memberinfo['MemberId'];
return TRUE;
}
Thanks in advance
Ron