A * denotes an optional parameter.
addPackageHTMLField(type, friendlyName, dbFieldName, *regex, *errorMessage)
- Description: Creates an HTML field that will be used to create new packages, or edit existing packages using this module. type must be of a given set of HTML field types. For a complete listing see Appendix A. dbFieldName must be "mstring". regex must be a regular expression compatible with the PHP defined function ereg. errorMessage is the message that is displayed if the input for this field does not match the regular expression defined by regex.
mymodule::$module->addPackageHTMLField("select", "Plan Name",
"mstring", "^.+", "You must select a valid Plan Name.");
Module Functions