Function Module_admin_cns_welcome_emails->get_form_fields
Definitions
adminzone/pages/modules/admin_cns_welcome_emails.php
- Get Tempcode for adding/editing form.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $name | SHORT_TEXT | No | No | Blank (empty string) | N/A | N/A | A name for the Welcome E-mail |
| $subject | SHORT_TEXT | No | No | Blank (empty string) | N/A | N/A | The subject of the Welcome E-mail |
| $text | LONG_TEXT | No | No | Blank (empty string) | N/A | N/A | The message body of the Welcome E-mail |
| $send_after_hours | integer | No | No | 0 | N/A | N/A | The number of hours before sending the e-mail |
| $newsletter | ?AUTO_LINK | No | No | Null | N/A | N/A | What newsletter to send out to instead of members (null: none) |
| $usergroup | ?AUTO_LINK | No | No | Null | N/A | N/A | The usergroup to tie to (null: none) |
| $usergroup_type | ID_TEXT | No | No | Blank (empty string) | primary secondary "" | N/A | How to send regarding usergroups (blank: indiscriminately) |
Returns
- A pair: The input fields, Hidden fields
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get Tempcode for adding/editing form.
*
* @param SHORT_TEXT $name A name for the Welcome E-mail
* @param SHORT_TEXT $subject The subject of the Welcome E-mail
* @param LONG_TEXT $text The message body of the Welcome E-mail
* @param integer $send_after_hours The number of hours before sending the e-mail
* @param ?AUTO_LINK $newsletter What newsletter to send out to instead of members (null: none)
* @param ?AUTO_LINK $usergroup The usergroup to tie to (null: none)
* @param ID_TEXT $usergroup_type How to send regarding usergroups (blank: indiscriminately)
* @set primary secondary ""
* @return array A pair: The input fields, Hidden fields
*/
public function get_form_fields(string $name = '', string $subject = '', string $text = '', int $send_after_hours = 0, ?int $newsletter = null, ?int $usergroup = null, string $usergroup_type = '') : array
* Get Tempcode for adding/editing form.
*
* @param SHORT_TEXT $name A name for the Welcome E-mail
* @param SHORT_TEXT $subject The subject of the Welcome E-mail
* @param LONG_TEXT $text The message body of the Welcome E-mail
* @param integer $send_after_hours The number of hours before sending the e-mail
* @param ?AUTO_LINK $newsletter What newsletter to send out to instead of members (null: none)
* @param ?AUTO_LINK $usergroup The usergroup to tie to (null: none)
* @param ID_TEXT $usergroup_type How to send regarding usergroups (blank: indiscriminately)
* @set primary secondary ""
* @return array A pair: The input fields, Hidden fields
*/
public function get_form_fields(string $name = '', string $subject = '', string $text = '', int $send_after_hours = 0, ?int $newsletter = null, ?int $usergroup = null, string $usergroup_type = '') : array

