- _control_error($form, $file_name,
- sprintf($locale->text("Missing 'description' field.")))
- unless ($control->{"description"});
+ if ($control->{"tag"} =~ /[^a-zA-Z0-9_\(\)\-]/) {
+ _control_error($form, $file_name, $locale->text("The 'tag' field must only consist of alphanumeric characters or the carachters - _ ( )"))
+ }
+
+ if (defined($all_controls{$control->{"tag"}})) {
+ _control_error($form, $file_name, sprintf($locale->text("More than one control file with the tag '%s' exist."), $control->{"tag"}))
+ }