function mail_debugger_basic_form in Mail Debugger 7.3
Callback to provide fields for the basic mail debugger interface.
Parameters
array $default_values:
Return value
array|boolian
1 string reference to 'mail_debugger_basic_form'
- mail_debugger_common_mail_debugger_info in modules/
common/ mail_debugger_common.module - Implement hook_mail_debugger_info();
File
- modules/
common/ includes/ basic.mail_debugger.inc, line 9
Code
function mail_debugger_basic_form($default_values = array()) {
if (!user_access('use mail debugger basic')) {
return FALSE;
}
return array(
'to' => array(
'#type' => 'textfield',
'#title' => t('To'),
'#default_value' => $default_values['to'],
),
'subject' => array(
'#type' => 'textfield',
'#title' => t('Subject'),
'#default_value' => $default_values['subject'],
),
'body' => array(
'#type' => 'textarea',
'#title' => t('Message'),
'#default_value' => $default_values['body'],
),
);
}