[RFC|Implemented] group_set_user_default hook

These requests for events in core phpBB have been merged into 3.1/Ascraeus and will be available with the next release.
Post Reply
User avatar
nickvergessen
Former Team Member
Posts: 733
Joined: Sun Oct 07, 2007 11:54 am
Location: Stuttgart, Germany
Contact:

[RFC|Implemented] group_set_user_default hook

Post by nickvergessen » Sun Aug 22, 2010 7:59 pm

Name: hook_group_set_user_default
Rationale: Similar to viewtopic.php?f=111&t=33726 the MODs also need to update the user_colour and maybe some more things.
Placement: includes/functions_user.php inside group_set_user_default best right before

Code: Select all

	$sql = 'UPDATE ' . USERS_TABLE . ' SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
		WHERE ' . $db->sql_in_set('user_id', $user_id_ary);
	$db->sql_query($sql);
Input arguments: $group_id, $user_id_ary, $group_attributes, $update_listing, &$sql_ary
Output format: $sql_ary per reference
Member of the Development-TeamNo Support via PM

User avatar
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: [RFC|Implemented] group_set_user_default hook

Post by MichaelC » Thu May 31, 2012 2:50 pm

Already implemented.
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

Post Reply