english/administrator/components/com_users/models/group.php
/**
	 * Override preprocessForm to load the user plugin group instead of content.
	 *
	 * @param	object	A form object.
	 * @param	mixed	The data expected for the form.
	 * @throws	Exception if there is an error in the form event.
	 * @since	1.6
	 */
Override preprocessForm to load the user plugin group instead of content.
@param       object  A form object.
@param       mixed   The data expected for the form.
@throws      Exception if there is an error in the form event.
Override preprocessForm to load the user plugin group instead of content . @param object A form object . @param mixed The data expected for the form . @throws Exception if there is an error in the form event .
protected function preprocessForm(JForm $form, $data, $groups = '')
	{
		$obj = is_array($data) ? JArrayHelper::toObject($data,'JObject') : $data;
		if (isset($obj->parent_id) && $obj->parent_id == 0 && $obj->id > 0) {
			$form->setFieldAttribute('parent_id','type','hidden');
			$form->setFieldAttribute('parent_id','hidden','true');
		}
		parent::preprocessForm($form, $data, 'user');
	}
protected function preprocessForm ( JForm $ form , $ data , $ groups = '' ) { $ obj = is_array ( $ data ) ? JArrayHelper :: toObject ( $ data , 'JObject' ) : $ data ; if ( isset ( $ obj -> parent_id ) && $ obj -> parent_id == 0 && $ obj -> id > 0 ) { $ form -> setFieldAttribute ( 'parent_id' , 'type' , 'hidden' ) ; $ form -> setFieldAttribute ( 'parent_id' , 'hidden' , 'true' ) ; } parent :: preprocessForm ( $ form , $ data , 'user' ) ; }
Override preprocessForm to load the user plugin group instead of content.
Override preprocessForm to load the user plugin group instead of content .