Page 1 of 1

Action on user delete

Posted: Thu Mar 04, 2010 8:06 am
by shmk
I've developed a mod that has a separate table containing data linked to users.

What is the best/right method to remove the linked data from my table when a user is deleted from PHPBB?

Re: Action on user delete

Posted: Thu Mar 04, 2010 9:33 am
by m157y
includes/functions_user.php
function user_delete()
place it here..
best way if in your table you have a field user_id, just update an $table_ary array, by default it looks like

Code: Select all

	$table_ary = array(USERS_TABLE, USER_GROUP_TABLE, TOPICS_WATCH_TABLE, FORUMS_WATCH_TABLE, ACL_USERS_TABLE, TOPICS_TRACK_TABLE, TOPICS_POSTED_TABLE, FORUMS_TRACK_TABLE, PROFILE_FIELDS_DATA_TABLE, MODERATOR_CACHE_TABLE, DRAFTS_TABLE, BOOKMARKS_TABLE, SESSIONS_KEYS_TABLE);