PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.8.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.8.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 +14 -26 6.326.8.1 View file →
@@ -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,22 +11,19 @@
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(
23 - 'classes' => 'frmfont frm_checkmark_circle_icon',
24 - 'active' => true,
25 - 'event' => array( 'create' ),
26 - 'limit' => 99,
27 - 'priority' => 9,
28 - 'color' => '#42C1B2',
29 - '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' ),
30 26 );
31 27 $action_ops = apply_filters( 'frm_' . self::$slug . '_control_settings', $action_ops );
32 28
33 29 $this->maybe_save_edit_trigger( $action_ops );
@@ -42,30 +38,22 @@
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 }
52 47
53 - /**
54 - * @return array
55 - */
56 48 public function get_defaults() {
57 49 return array(
58 - 'success_action' => FrmOnSubmitHelper::get_default_action_type(),
59 - 'success_msg' => FrmOnSubmitHelper::get_default_msg(),
60 - 'show_form' => '',
61 - 'success_url' => '',
62 - 'success_page_id' => '',
63 - 'open_in_new_tab' => '',
64 - 'redirect_delay' => '',
65 - // Value in second.
66 - 'redirect_delay_time' => 8,
67 - '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' => '',
68 56 );
69 57 }
70 58
71 59 /**