plugins/system/languagefilter/languagefilter.php
/**
	 * before store user method
	 *
	 * Method is called before user data is stored in the database
	 *
	 * @param	array		$user	Holds the old user data.
	 * @param	boolean		$isnew	True if a new user is stored.
	 * @param	array		$new	Holds the new user data.
	 *
	 * @return	void
	 * @since	1.6
	 */
before store user method
Method is called before user data is stored in the database

@param       array           $user   Holds the old user data.
@param       boolean         $isnew  True if a new user is stored.
@param       array           $new    Holds the new user data.


before store user method Method is called before user data is stored in the database @param array $user Holds the old user data . @param boolean $isnew True if a new user is stored . @param array $new Holds the new user data .
public function onUserBeforeSave($user, $isnew, $new)
	{
		if ($this->params->get('automatic_change', '1')=='1' && key_exists('params', $user))
		{
			$registry = new JRegistry();
			$registry->loadString($user['params']);
			self::$_user_lang_code = $registry->get('language');
			if (empty(self::$_user_lang_code)) {
				self::$_user_lang_code = self::$default_lang;
			}
		}
	}
public function onUserBeforeSave ( $ user , $ isnew , $ new ) { if ( $ this -> params -> get ( 'automatic_change' , '1' ) == '1' && key_exists ( 'params' , $ user ) ) { $ registry = new JRegistry ( ) ; $ registry -> loadString ( $ user [ 'params' ] ) ; self :: $ _user_lang_code = $ registry -> get ( 'language' ) ; if ( empty ( self :: $ _user_lang_code ) ) { self :: $ _user_lang_code = self :: $ default_lang ; } } }
before store user method
 Method is called before user data is stored in the database
before store user method Method is called before user data is stored in the database