A * denotes an optional parameter.
addServiceHTMLField(type, friendlyName, dbFieldName, *regex, *errorMessage)
- Description: Creates an HTML field that will be used to add new services from the admin interface. type must be of a given set of HTML field types. For a complete listing see Appendix A. If dbFieldName is anything other than "user1", "user2", "pass", "opt1", "opt2" then that field will not be stored in the database under the services table and may only be used in this module file. 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.
If the third parameter is anything other than user1, user2, pass, opt1, opt2, it must be formatted as an element of the detail array (ex. detail[emailaddress]). Any field other than user1, user2, pass, opt1, or opt2 supplied for the third parameter will not be stored in the database, and may only be used in this module file.
mymodule::$module->addServiceHTMLField("text", "Password", "pass",
"^.{4,16}$", "Passwords must be between 4 and 16 characters.");
Module Functions