| @@ -15,15 +15,15 @@ | ||
| 15 | 15 | public static $slug = 'on_submit'; |
| 16 | 16 | |
| 17 | 17 | public function __construct() { |
| 18 | 18 | $action_ops = array( |
| 19 | - 'classes' => 'frm_icon_font frm_checkmark_icon', | |
| 20 | - 'active' => true, | |
| 21 | - 'event' => array( 'create' ), | |
| 22 | - 'limit' => 99, | |
| 23 | - 'priority' => 9, | |
| 24 | - 'color' => 'rgb(66, 193, 178)', | |
| 25 | - 'keywords' => __( 'redirect, success, confirmation, submit', 'formidable' ), | |
| 19 | + 'classes' => 'frm_icon_font frm_checkmark_icon', | |
| 20 | + 'active' => true, | |
| 21 | + 'event' => array( 'create' ), | |
| 22 | + 'limit' => 99, | |
| 23 | + 'priority' => 9, | |
| 24 | + 'color' => 'rgb(66, 193, 178)', | |
| 25 | + 'keywords' => __( 'redirect, success, confirmation, submit', 'formidable' ), | |
| 26 | 26 | ); |
| 27 | 27 | $action_ops = apply_filters( 'frm_' . self::$slug . '_control_settings', $action_ops ); |
| 28 | 28 | |
| 29 | 29 | $this->maybe_save_edit_trigger( $action_ops ); |
| @@ -46,13 +46,18 @@ | ||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | public function get_defaults() { |
| 49 | 49 | return array( |
| 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' => '', | |
| 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' => '', | |
| 56 | + 'redirect_delay' => '', | |
| 57 | + // Value in second. | |
| 58 | + 'redirect_delay_time' => 8, | |
| 59 | + 'redirect_delay_msg' => FrmOnSubmitHelper::get_default_redirect_msg(), | |
| 55 | 60 | ); |
| 56 | 61 | } |
| 57 | 62 | |
| 58 | 63 | /** |
| @@ -59,10 +64,10 @@ | ||
| 59 | 64 | * This function should check that $new_instance is set correctly. |
| 60 | 65 | * The newly calculated value of $instance should be returned. |
| 61 | 66 | * If "false" is returned, the instance won't be saved/updated. |
| 62 | 67 | * |
| 63 | - * @param array $new_instance New settings for this instance as input by the user via form() | |
| 64 | - * @param array $old_instance Old settings for this instance | |
| 68 | + * @param array $new_instance New settings for this instance as input by the user via form(). | |
| 69 | + * @param array $old_instance Old settings for this instance. | |
| 65 | 70 | * |
| 66 | 71 | * @return array Settings to save or bool false to cancel saving |
| 67 | 72 | */ |
| 68 | 73 | public function update( $new_instance, $old_instance ) { |