| @@ -2,8 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * On Submit form action |
| 4 | 4 | * |
| 5 | 5 | * @package Formidable |
| 6 | + * | |
| 6 | 7 | * @since 6.0 |
| 7 | 8 | */ |
| 8 | 9 | |
| 9 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -11,18 +12,21 @@ | ||
| 11 | 12 | } |
| 12 | 13 | |
| 13 | 14 | class FrmOnSubmitAction extends FrmFormAction { |
| 14 | 15 | |
| 16 | + /** | |
| 17 | + * @var string | |
| 18 | + */ | |
| 15 | 19 | public static $slug = 'on_submit'; |
| 16 | 20 | |
| 17 | 21 | public function __construct() { |
| 18 | 22 | $action_ops = array( |
| 19 | - 'classes' => 'frm_icon_font frm_checkmark_icon', | |
| 23 | + 'classes' => 'frmfont frm_checkmark_circle_icon', | |
| 20 | 24 | 'active' => true, |
| 21 | 25 | 'event' => array( 'create' ), |
| 22 | 26 | 'limit' => 99, |
| 23 | 27 | 'priority' => 9, |
| 24 | - 'color' => 'rgb(66, 193, 178)', | |
| 28 | + 'color' => '#42C1B2', | |
| 25 | 29 | 'keywords' => __( 'redirect, success, confirmation, submit', 'formidable' ), |
| 26 | 30 | ); |
| 27 | 31 | $action_ops = apply_filters( 'frm_' . self::$slug . '_control_settings', $action_ops ); |
| 28 | 32 | |
| @@ -38,14 +42,18 @@ | ||
| 38 | 42 | return __( 'Confirmation', 'formidable' ); |
| 39 | 43 | } |
| 40 | 44 | |
| 41 | 45 | /** |
| 42 | - * @return void | |
| 46 | + * @param object $instance | |
| 47 | + * @param array $args | |
| 43 | 48 | */ |
| 44 | 49 | public function form( $instance, $args = array() ) { |
| 45 | 50 | include FrmAppHelper::plugin_path() . '/classes/views/frm-form-actions/on_submit_settings.php'; |
| 46 | 51 | } |
| 47 | 52 | |
| 53 | + /** | |
| 54 | + * @return array | |
| 55 | + */ | |
| 48 | 56 | public function get_defaults() { |
| 49 | 57 | return array( |
| 50 | 58 | 'success_action' => FrmOnSubmitHelper::get_default_action_type(), |
| 51 | 59 | 'success_msg' => FrmOnSubmitHelper::get_default_msg(), |