protected function parseFormConfiguration($options)
    {
        $options += array(
            "type" => "POST",
            "action" => $_SERVER['REQUEST_URI'],
            "nonce" => null
        );

        if (strtolower($options['type']) === "file") {
            $options["method"] = "POST";
            $options["enctype"] = "multipart/form-data";
        } else {
            $options["method"] = strtoupper($options['type']);
        }

        return $options;
    }
protected function parseFormConfiguration($options)
    {
        $options += array(
            "type" => "POST",
            "action" => $_SERVER['REQUEST_URI'],
            "nonce" => null
        );

        if (strtolower($options['type']) === "file") {
            $options["method"] = "POST";
            $options["enctype"] = "multipart/form-data";
        } else {
            $options["method"] = strtoupper($options['type']);
        }

        return $options;
    }
protected function parseFormConfiguration ( $ options ) { $ options += array ( "type" => "POST" , "action" => $ _SERVER [ 'REQUEST_URI' ] , "nonce" => null ) ; if ( strtolower ( $ options [ 'type' ] ) === "file" ) { $ options [ "method" ] = "POST" ; $ options [ "enctype" ] = "multipart/form-data" ; } else { $ options [ "method" ] = strtoupper ( $ options [ 'type' ] ) ; } return $ options ; }
Parses the supplied form configuration and populates
the missing default values.
@param  array $options
@return string
Parses the supplied form configuration and populates the missing default values .