Return to Snippet

Revision: 31885
at September 15, 2010 08:03 by doublejosh

Initial Code
function MY_MODULE_form_user_register_alter(&$form, &$form_state) {
	$profileFieldset= 'About You'; // CHANGE TO YOUR GROUP
	// cluster all fields into one fieldset
	foreach($form[$profileFieldset] as $key => $item) {
		// push field to account fieldset
		if( substr($key,0,8)=='profile_' ) $form['account'][$key] = $item;

Initial URL

Initial Description

Initial Title
Group all user registration fields into one fieldset

Initial Tags
drupal, user

Initial Language