function rules_action_mail_form in Rules 6
Action "Send a mail to an arbitrary mail address" configuration form
Related topics
File
- rules/
modules/ system.rules_forms.inc, line 79 - Rules configuration forms for the system module
Code
function rules_action_mail_form($settings = array(), &$form) {
$form['settings']['to'] = array(
'#type' => 'textarea',
'#title' => t('Recipient'),
'#default_value' => isset($settings['to']) ? $settings['to'] : '',
'#description' => t("The mail's recipient address. You may separate multiple addresses with ','."),
'#required' => TRUE,
'#weight' => -1,
'#rows' => 1,
);
rules_action_mail_to_user_form($settings, $form);
}