function monolog_native_mailer_handler_settings in Monolog 6
Same name and namespace in other branches
- 7 handlers/native_mailer.inc \monolog_native_mailer_handler_settings()
Monolog settings callback; Settings for the native_mailer handler.
File
- handlers/
native_mailer.inc, line 28 - Handler include for MailHandler.
Code
function monolog_native_mailer_handler_settings(&$form, &$form_state, $profile, array $handler) {
$form['to'] = array(
'#title' => t('Receiver'),
'#type' => 'textfield',
'#default_value' => $handler['to'],
'#description' => t('The email address that messages will be sent to.<br/><code><site-mail></code> will use address that this site uses to send automated emails.'),
'#required' => TRUE,
);
$form['subject'] = array(
'#title' => t('Subject'),
'#type' => 'textfield',
'#default_value' => $handler['subject'],
'#description' => t('The subject of the email address.'),
'#required' => TRUE,
);
$form['from'] = array(
'#title' => t('Sender'),
'#type' => 'textfield',
'#default_value' => $handler['from'],
'#description' => t('The email address of the sender.<br/><code><site-mail></code> will use address that this site uses to send automated emails.'),
'#required' => TRUE,
);
}