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;
    }