Form/Updater.php
public function reset( array $names = array() )
    {
        if( array() == $names )
        {
            // Unset new instance to force reset
            $this->new_instance = array();
            return $this->update();
        }
        else
        {
            foreach( $this->components as $c )
            {
                if( in_array($c->get_name(), $names) )
                {
                    $this->new_instance[$c->get_name()] = $c->get_default_value();
                }
            }
            return $this->update();
        }
    }
public function reset( array $names = array() )
    {
        if( array() == $names )
        {
            // Unset new instance to force reset
            $this->new_instance = array();
            return $this->update();
        }
        else
        {
            foreach( $this->components as $c )
            {
                if( in_array($c->get_name(), $names) )
                {
                    $this->new_instance[$c->get_name()] = $c->get_default_value();
                }
            }
            return $this->update();
        }
    }
public function reset ( array $ names = array ( ) ) { if ( array ( ) == $ names ) { // Unset new instance to force reset $ this -> new_instance = array ( ) ; return $ this -> update ( ) ; } else { foreach ( $ this -> components as $ c ) { if ( in_array ( $ c -> get_name ( ) , $ names ) ) { $ this -> new_instance [ $ c -> get_name ( ) ] = $ c -> get_default_value ( ) ; } } return $ this -> update ( ) ; } }
Reset all fields to their default values.

@param array $names List of component names to be set to their defaults. If no names are specified, all components will be reset
@return array The updated values array.
Reset all fields to their default values .