Needs review
Project:
User Import
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2009 at 07:13 UTC
Updated:
13 Apr 2016 at 22:29 UTC
Jump to comment: Most recent
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).
Comments
Comment #1
Spokenbird commentedCan this be committed to User Import? It'd be nice to be able to have some control over formatting in the emails it sends to new users.