return;
}
+sub get_custom_groups () {
+ # Array to store all found host/networks groups.
+ my @groups = ();
+
+ # Loop through the hash of customgroups.
+ foreach my $key (keys %customgrp) {
+ # Omit the group name.
+ my $group_name = $customgrp{$key}[0];
+
+ # Add the group to the groups array.
+ push(@groups, $group_name);
+ }
+
+ # Remove any double entries.
+ @groups = &General::uniq(@groups);
+
+ # Sort the group names in alphabetical order.
+ @groups = sort(@groups);
+
+ # Return the array.
+ return @groups;
+}
+
return 1;