From 559463160163cabc22e837f03aef19555a8b13a8 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 12 Oct 2004 13:13:04 +0000 Subject: [PATCH] use "possible values" option in upload --- lam/lib/modules/sambaGroupMapping.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lam/lib/modules/sambaGroupMapping.inc b/lam/lib/modules/sambaGroupMapping.inc index 7e848047..6505ce44 100644 --- a/lam/lib/modules/sambaGroupMapping.inc +++ b/lam/lib/modules/sambaGroupMapping.inc @@ -227,12 +227,17 @@ class sambaGroupMapping extends baseModule { 'sambaGroupType', 'description'); // upload fields + // search existing Samba 3 domains + $domains = search_domains($_SESSION['config']->get_domainSuffix()); + $domainNames = array(); + for ($i = 0; $i < sizeof($domains); $i++) $domainNames[] = $domains[$i]->name; $return['upload_columns'] = array( array( 'name' => 'sambaGroupMapping_domain', 'description' => _('Samba 3 domain name'), 'help' => 'sambaDomainName', - 'example' => _('Domain1'), + 'example' => $domainNames[0], + 'values' => implode(", ", $domainNames), 'required' => true ), array( @@ -251,6 +256,7 @@ class sambaGroupMapping extends baseModule { 'name' => 'sambaGroupMapping_groupType', 'description' => _('Samba 3 group type'), 'help' => 'type', + 'values' => implode(", ", array_keys($this->sambaGroupTypes) + $this->sambaGroupTypes), 'example' => '2' ) ); @@ -276,7 +282,7 @@ class sambaGroupMapping extends baseModule { 'type' => array( "ext" => "FALSE", "Headline" => _("Samba group type"), - "Text" => _("Windows group type.") . "

" . _("Possible values: ") . "" . implode(", ", array_keys($this->sambaGroupTypes) + $this->sambaGroupTypes))); + "Text" => _("Windows group type."))); return $return; }