summaryrefslogtreecommitdiffstats
path: root/etc/inc/xmlparse.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-17 16:18:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-17 16:18:51 +0000
commit4928848f9ced44c3f1cacec2c8101036fb46a73a (patch)
treef53382bbc975cce8435b65c3a5cd1d7f0b358496 /etc/inc/xmlparse.inc
parenteb72cedac6c0a7392b9e49f7258d0667a67767ad (diff)
downloadpfsense-4928848f9ced44c3f1cacec2c8101036fb46a73a.zip
pfsense-4928848f9ced44c3f1cacec2c8101036fb46a73a.tar.gz
This one adds support for custom array types for the functions dump_xml_config* .
Submitted-by: DanielS
Diffstat (limited to 'etc/inc/xmlparse.inc')
-rw-r--r--etc/inc/xmlparse.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/inc/xmlparse.inc b/etc/inc/xmlparse.inc
index fe811b2..a630040 100644
--- a/etc/inc/xmlparse.inc
+++ b/etc/inc/xmlparse.inc
@@ -227,12 +227,22 @@ function dump_xml_config_sub($arr, $indent) {
function dump_xml_config($arr, $rootobj) {
global $listtags;
$listtags = listtags();
+ if (isset($GLOBALS['custom_listtags'])) {
+ foreach($GLOBALS['custom_listtags'] as $tag) {
+ $listtags[] = $tag;
+ }
+ }
return dump_xml_config_raw($arr, $rootobj);
}
function dump_xml_config_pkg($arr, $rootobj) {
global $listtags;
$listtags = listtags_pkg();
+ if (isset($GLOBALS['custom_listtags_pkg'])) {
+ foreach($GLOBALS['custom_listtags_pkg'] as $tag) {
+ $listtags[] = $tag;
+ }
+ }
return dump_xml_config_raw($arr, $rootobj);
}
OpenPOWER on IntegriCloud