ldc-espri-restauration/wp-content/plugins/ninja-forms/includes/Config/ActionSaveSettings.php

85 lines
2.8 KiB
PHP
Raw Normal View History

2018-12-03 13:56:48 +01:00
<?php if ( ! defined( 'ABSPATH' ) ) exit;
2021-08-04 17:09:29 +02:00
return apply_filters( 'ninja_forms_action_save_settings', array(
2018-12-03 13:56:48 +01:00
/*
* To
*/
'submitter_email' => array(
'name' => 'submitter_email',
'type' => 'email-select',
'options' => array(),
2021-08-04 17:09:29 +02:00
'group' => 'advanced',
'label' => esc_html__( 'Designated Submitter\'s Email Address', 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'value' => '',
2021-08-04 17:09:29 +02:00
'help' => esc_html__( 'The email address used in this field will be allowed to make data export and delete requests on behalf of their form submission.', 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
),
'fields_save_toggle' => array(
'name' => 'fields-save-toggle',
'type' => 'button-toggle',
'width' => 'full',
'options' => array(
2021-08-04 17:09:29 +02:00
array( 'label' => esc_html__( 'Save All', 'ninja-forms' ), 'value' => 'save_all' ),
array( 'label' => esc_html__( 'Save None', 'ninja-forms' ), 'value' => 'save_none' )
2018-12-03 13:56:48 +01:00
),
2021-08-04 17:09:29 +02:00
'group' => 'advanced',
'label' => esc_html__( 'Fields', 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'value' => 'save_all',
),
/*
|--------------------------------------------------------------------------
| Exception Field
|--------------------------------------------------------------------------
*/
'exception_fields' => array(
'name' => 'exception_fields',
'type' => 'option-repeater',
2021-08-04 17:09:29 +02:00
'label' => esc_html__( 'Except', 'ninja-forms' ) . ' <a href="#" class="nf-add-new">' .
esc_html__( 'Add New', 'ninja-forms' ) . '</a>',
2018-12-03 13:56:48 +01:00
'width' => 'full',
2021-08-04 17:09:29 +02:00
'group' => 'advanced',
2018-12-03 13:56:48 +01:00
'tmpl_row' => 'nf-tmpl-save-field-repeater-row',
'value' => array(),
'columns' => array(
'form_field' => array(
2021-08-04 17:09:29 +02:00
'header' => esc_html__( 'Form Field', 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'default' => '',
'options' => array(),
),
),
),
/*
* Set subs to expire.
*/
'set_subs_to_expire' => array(
'name' => 'set_subs_to_expire',
'type' => 'toggle',
'group' => 'advanced',
2021-08-04 17:09:29 +02:00
'label' => esc_html__( 'Set Submissions to expire?', 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'value' => 0,
2021-08-04 17:09:29 +02:00
'help' => esc_html__( 'Sets submissions to be trashes after a certain number of days, it affects all existing and new submissions', 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'width' => 'one-half',
),
/*
* Subs expire in?
*/
'subs_expire_time' => array(
'name' => 'subs_expire_time',
'type' => 'number',
'group' => 'advanced',
2021-08-04 17:09:29 +02:00
'label' => esc_html__( 'How long in days until subs expire?', 'ninja-forms' ),
2018-12-03 13:56:48 +01:00
'value' => '90',
'min_val' => 1, // new minimum value setting
'max_val' => null, // new maximum value setting
'width' => 'one-half',
'deps' => array(
'set_subs_to_expire' => 1
)
),
));