Page 1 of 1

Change ownership

Posted: 2022-04-28 21:14
by arcanebits
Hi again
I do use hooks to update some files that are related with the current user, it works nicely, now i need also to change ownership of those same records to the user, is thera a command line to do so in the php hook?
a3

Re: Change ownership

Posted: 2022-04-28 21:18
by jsetzer

Code: Select all

set_record_owner('TABLENAME', 'PK', 'MEMBERID_OF_NEW_OWNER);

Re: Change ownership

Posted: 2022-04-28 21:33
by arcanebits
Wow SOLID GOLD!
Also for more info, i left here a link where you explained it in detail
viewtopic.php?t=3090

thanks!
a3