summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2017-04-03 14:55:54 -0400
committerjim-p <jimp@pfsense.org>2017-04-03 14:55:54 -0400
commitf0875a7e6af8862ddd71b91b52194a96ff385d3b (patch)
tree68648d562112726f2dee880c1184e8bd2b23cd3b /src/etc/inc/pfsense-utils.inc
parent916168fdbb3628516a6887fe8384889ee40a42b9 (diff)
parent1d3510cf6cc471b179d52e03f4cfe77e23b4b20b (diff)
downloadpfsense-f0875a7e6af8862ddd71b91b52194a96ff385d3b.zip
pfsense-f0875a7e6af8862ddd71b91b52194a96ff385d3b.tar.gz
Merge pull request #3685 from phil-davis/sort-if-names
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 81a2ea3..ded6b3f 100644
--- a/src/etc/inc/pfsense-utils.inc
+++ b/src/etc/inc/pfsense-utils.inc
@@ -255,6 +255,25 @@ function gen_dashboardcolumns_field(&$section, $value) {
));
}
+/****f* pfsense-utils/gen_interfacessort_field
+ * NAME
+ * gen_interfacessort_field
+ * INPUTS
+ * Pointer to section object
+ * Initial value for the field
+ * RESULT
+ * no return value, section object is updated
+ ******/
+function gen_interfacessort_field(&$section, $value) {
+
+ $section->addInput(new Form_Checkbox(
+ 'interfacessort',
+ 'Interfaces Sort',
+ 'Sort Alphabetically',
+ $value
+ ))->setHelp('If selected, lists of interfaces will be sorted by description, otherwise they are listed wan,lan,optn...');
+}
+
/****f* pfsense-utils/gen_associatedpanels_fields
* NAME
* gen_associatedpanels_fields
@@ -375,6 +394,7 @@ function gen_user_settings_fields(&$section, $pconfig) {
gen_webguifixedmenu_field($section, $pconfig['webguifixedmenu']);
gen_webguihostnamemenu_field($section, $pconfig['webguihostnamemenu']);
gen_dashboardcolumns_field($section, $pconfig['dashboardcolumns']);
+ gen_interfacessort_field($section, $pconfig['interfacessort']);
gen_associatedpanels_fields(
$section,
$pconfig['dashboardavailablewidgetspanel'],
OpenPOWER on IntegriCloud