PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.22.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.22.1
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/models/FrmOnSubmitAction.php +19 -14 6.36.22.1 View file →
@@ -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 ) {