function rules_action_mail_to_user_form in Rules 6
Action "Send a mail to a user" configuration form
Related topics
2 calls to rules_action_mail_to_user_form()
- rules_action_mail_form in rules/
modules/ system.rules_forms.inc - Action "Send a mail to an arbitrary mail address" configuration form
- rules_action_mail_to_users_of_role_form in rules/
modules/ system.rules_forms.inc - Action "Send a mail to users of a role" configuration form
File
- rules/
modules/ system.rules_forms.inc, line 54 - Rules configuration forms for the system module
Code
function rules_action_mail_to_user_form($settings = array(), &$form) {
$settings += array(
'from' => '',
'subject' => '',
'message' => '',
);
$form['settings']['from'] = array(
'#type' => 'textfield',
'#title' => t('Sender'),
'#default_value' => $settings['from'],
'#description' => t("The mail's from address. Leave it empty to use the site-wide configured address."),
);
$form['settings']['subject'] = array(
'#type' => 'textfield',
'#title' => t('Subject'),
'#default_value' => $settings['subject'],
'#description' => t("The mail's subject."),
);
$form['settings']['message'] = array(
'#type' => 'textarea',
'#title' => t('Message'),
'#default_value' => $settings['message'],
'#description' => t("The mail's message body."),
);
}