summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorderelict-pf <cjl@netgate.com>2017-01-08 18:03:04 -0800
committerderelict-pf <cjl@netgate.com>2017-01-08 18:36:48 -0800
commit88081ea257fa683ed28b588c4c35260589604741 (patch)
tree98fbb52fea26ebb6dac358ab294403c84bc7d353 /src/etc/inc/pfsense-utils.inc
parent286ed246df8bc25df436fd6a5cbc66e38fe5a06a (diff)
downloadpfsense-88081ea257fa683ed28b588c4c35260589604741.zip
pfsense-88081ea257fa683ed28b588c4c35260589604741.tar.gz
Add requirestatefilter. Implements #7069.
Diffstat (limited to 'src/etc/inc/pfsense-utils.inc')
-rw-r--r--src/etc/inc/pfsense-utils.inc20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc
index aca0e90..9f290bb 100644
--- a/src/etc/inc/pfsense-utils.inc
+++ b/src/etc/inc/pfsense-utils.inc
@@ -366,6 +366,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;
OpenPOWER on IntegriCloud