diff options
Diffstat (limited to 'src/etc/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 847826b..de0b998 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; |