Posted by OliverColeman on August 3, 2009 at 7:13am
| Project: | User Import |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
Needed to have wysiwyg support for the email message so I added an input format selector field to the user import form. Below are the changes (sorry it's not a nice patch, in a rush and it's only a minor change).
In supported/user.inc around line 190 change
$form['email_message']['message'] = array(
'#type' => 'textarea',
'#title' => t('Message'),
'#default_value' => $import['options']['message'],
'#description' => t('Customize the body of the welcome e-mail, which is sent to imported members.') .' '. t('Available variables are:') .' !username, !site, !password, !uri, !uri_brief, !mailto, !login_uri, !edit_uri, !login_url' . $profile_string . '.',
);to
$form['email_message']['message'] = array(
'#type' => 'textarea',
'#title' => t('Message'),
'#rows' => 20,
'#default_value' => $import['options']['message'],
'#description' => t('Customize the body of the welcome e-mail, which is sent to imported members.') .' '. t('Available variables are:') .' !username, !site, !password, !uri, !uri_brief, !mailto, !login_uri, !edit_uri, !login_url' . $profile_string . '.',
);
$form['email_message']['format'] = filter_form();(The height of the textarea is also increased to accommodate the wysiwyg buttons).