diff options
author | derelict-pf <cjl@netgate.com> | 2017-01-08 18:03:04 -0800 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-01-11 09:35:49 -0200 |
commit | 05a13eba96b5d9bcb75750a37f174e8834e2b879 (patch) | |
tree | f01f81ae8707f1c63132974dec0e7dacb1503d6a /src/etc/inc/pfsense-utils.inc | |
parent | 4c4cd8a766449a68d71e3080eb9fe159ea37ac38 (diff) | |
download | pfsense-05a13eba96b5d9bcb75750a37f174e8834e2b879.zip pfsense-05a13eba96b5d9bcb75750a37f174e8834e2b879.tar.gz |
Add requirestatefilter. Implements #7069.
(cherry picked from commit 0a3150896bc412868cfb79473293ed81c87a50a7)
Diffstat (limited to 'src/etc/inc/pfsense-utils.inc')
-rw-r--r-- | src/etc/inc/pfsense-utils.inc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc index 9251f85..1df790b 100644 --- a/src/etc/inc/pfsense-utils.inc +++ b/src/etc/inc/pfsense-utils.inc @@ -398,6 +398,26 @@ function gen_user_settings_fields(&$section, $pconfig) { gen_pagenamefirst_field($section, $pconfig['pagenamefirst']); } +/****f* pfsense-utils/gen_requirestatefilter_field + * NAME + * gen_requirestatefilter_field + * INPUTS + * Pointer to section object + * Initial value for the field + * RESULT + * no return value, section object is updated + ******/ +function gen_requirestatefilter_field(&$section, $value) { + $section->addInput(new Form_Checkbox( + 'requirestatefilter', + 'Require State Filter', + 'Do not display state table without a filter', + $value + ))->setHelp('By default, the entire state table is displayed when entering '. + 'Diagnostics > States. This option requires a filter to be entered '. + 'before the states are displayed. Useful for systems with large state tables.'); +} + function hardware_offloading_applyflags($iface) { global $config; |