Hi, I'd like to use gform_post_submission to alter the confirmation message. But, I am not sure how to do this.
gform_post_submission seems to work fine. But, I am not able to alter $form["confirmation"]["message"] with it.
See below for a completely contrived example:
if( !class_exists( 'WP_Http' ) )
include_once( ABSPATH . WPINC. '/class-http.php' );
add_action( 'gform_post_submission_6', 'process_admission_form', 10, 2 );
function process_admission_form($entry, $form){
$url = 'http://somesite.com/web/?' . http_build_query( $entry );
$request = new WP_Http;
$result = $request->request( $url );
$form["confirmation"]["message"] = $result["response"]["code"];
return $form;
}