| @@ -2,9 +2,8 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * On Submit form action |
| 4 | 4 | * |
| 5 | 5 | * @package Formidable |
| 6 | - * | |
| 7 | 6 | * @since 6.0 |
| 8 | 7 | */ |
| 9 | 8 | |
| 10 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -12,11 +11,8 @@ | ||
| 12 | 11 | } |
| 13 | 12 | |
| 14 | 13 | class FrmOnSubmitAction extends FrmFormAction { |
| 15 | 14 | |
| 16 | - /** | |
| 17 | - * @var string | |
| 18 | - */ | |
| 19 | 15 | public static $slug = 'on_submit'; |
| 20 | 16 | |
| 21 | 17 | public function __construct() { |
| 22 | 18 | $action_ops = array( |
| @@ -42,10 +38,9 @@ | ||
| 42 | 38 | return __( 'Confirmation', 'formidable' ); |
| 43 | 39 | } |
| 44 | 40 | |
| 45 | 41 | /** |
| 46 | - * @param object $instance | |
| 47 | - * @param array $args | |
| 42 | + * @return void | |
| 48 | 43 | */ |
| 49 | 44 | public function form( $instance, $args = array() ) { |
| 50 | 45 | include FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/on_submit_settings.php'; |
| 51 | 46 | } |
| @@ -51,18 +46,14 @@ | ||
| 51 | 46 | } |
| 52 | 47 | |
| 53 | 48 | public function get_defaults() { |
| 54 | 49 | return array( |
| 55 | - 'success_action' => FrmOnSubmitHelper::get_default_action_type(), | |
| 56 | - 'success_msg' => FrmOnSubmitHelper::get_default_msg(), | |
| 57 | - 'show_form' => '', | |
| 58 | - 'success_url' => '', | |
| 59 | - 'success_page_id' => '', | |
| 60 | - 'open_in_new_tab' => '', | |
| 61 | - 'redirect_delay' => '', | |
| 62 | - // Value in second. | |
| 63 | - 'redirect_delay_time' => 8, | |
| 64 | - 'redirect_delay_msg' => FrmOnSubmitHelper::get_default_redirect_msg(), | |
| 50 | + 'success_action' => FrmOnSubmitHelper::get_default_action_type(), | |
| 51 | + 'success_msg' => FrmOnSubmitHelper::get_default_msg(), | |
| 52 | + 'show_form' => '', | |
| 53 | + 'success_url' => '', | |
| 54 | + 'success_page_id' => '', | |
| 55 | + 'open_in_new_tab' => '', | |
| 65 | 56 | ); |
| 66 | 57 | } |
| 67 | 58 | |
| 68 | 59 | /** |