PayCollection

// Get the submit button type. $type = rgars( $form, 'button/type' ); // Set the submit button text. $form['button']['text'] = 'the button text'; // Get the previous button type. $previous_type = rgars( $form, 'lastPageButton/text' );