function devel_mail_logger_send_mail in Devel Mail Logger 7
This function loads form and sends actual email.
_state
Parameters
$form:
$mail:
Return value
array
1 string reference to 'devel_mail_logger_send_mail'
- devel_mail_logger_menu in ./
devel_mail_logger.module - Implements hook_menu().
File
- ./
devel_mail_logger.admin.inc, line 153
Code
function devel_mail_logger_send_mail($form, &$form_state, $mail) {
$form = array();
$form['mail'] = array(
'#type' => 'hidden',
'#value' => $mail,
);
$form['email'] = array(
'#type' => 'textfield',
'#title' => t('Email: '),
'#default_value' => $GLOBALS['user']->mail,
'#required' => TRUE,
);
$form['send'] = array(
'#type' => 'submit',
'#value' => t('Send'),
);
return $form;
}