function mail_debugger_user_form in Mail Debugger 7.3
Callback for the elements on the form to send system mails to users.
Parameters
type $default_values:
Return value
boolean
1 string reference to 'mail_debugger_user_form'
- mail_debugger_common_mail_debugger_info in modules/
common/ mail_debugger_common.module - Implement hook_mail_debugger_info();
File
- modules/
common/ includes/ user.mail_debugger.inc, line 9
Code
function mail_debugger_user_form($default_values = array()) {
if (!user_access('use mail debugger user')) {
return FALSE;
}
// add user section of the form
return array(
'mail' => array(
'#type' => 'textfield',
'#title' => t('E-mail address'),
'#default_value' => $default_values['mail'],
'#autocomplete_path' => 'admin/config/development/mail_debugger/user_autocomplete_mail',
),
'type' => array(
'#type' => 'select',
'#title' => t('Message'),
'#options' => array(
'register_admin_created' => t('Welcome message for user created by the admin.'),
'register_no_approval_required' => t('Welcome message when user self-registers.'),
'register_pending_approval' => t('Welcome message, user pending admin approval.'),
'status_activated' => t('Account activated.'),
'status_blocked' => t('Account blocked.'),
'password_reset' => t('Password recovery request.'),
'cancel_confirm' => t('Account cancellation request.'),
'status_canceled' => t('Account canceled.'),
),
'#default_value' => $default_values['type'],
),
);
}