I’m building a form for a modules configuration page. The last line of the form callback is the following:
return system_settings_from($form);
I want to add a textfield to the form, but I want to be able to enter multiple entires into the field using the same widget you get when manually creating a field of this type (where cardinality > 1) where you get the text field with an “add another item” button.
How can I use that type of widget in a form for a module configuration page?