You are here

function user_user_import_edit_email_fields in User Import 6.4

Same name and namespace in other branches
  1. 8 supported/user.inc \user_user_import_edit_email_fields()
  2. 5.2 supported/user.inc \user_user_import_edit_email_fields()
  3. 5 supported/user.inc \user_user_import_edit_email_fields()
  4. 6.2 supported/user.inc \user_user_import_edit_email_fields()
  5. 7.3 supported/user.inc \user_user_import_edit_email_fields()
  6. 7 supported/user.inc \user_user_import_edit_email_fields()
  7. 7.2 supported/user.inc \user_user_import_edit_email_fields()
1 call to user_user_import_edit_email_fields()
user_user_import_form_fieldset in supported/user.inc
Implementation of hook_user_import_form_fieldsets().

File

supported/user.inc, line 200

Code

function user_user_import_edit_email_fields(&$form, $import, $collapsed) {
  $form['email_message'] = array(
    '#type' => 'fieldset',
    '#title' => t('Email Message'),
    '#description' => t('Welcome message to be sent to imported users. Leave blank to use the default !message. If an existing user account is updated no welcome email will be sent to that user. <strong>Note - if "Activate Accounts" option is enabled !login_url (one time login) will not work.</strong>', array(
      '!message' => l('message', 'admin/user/settings'),
    )),
    '#collapsible' => TRUE,
    '#collapsed' => $collapsed,
  );
  $form['email_message']['subject'] = array(
    '#type' => 'textfield',
    '#title' => t('Message Subject'),
    '#default_value' => isset($import['subject']) ? $import['subject'] : '',
    '#description' => t('Customize the subject of the welcome e-mail, which is sent to imported members.') . ' ' . t('Available variables are:') . ' !username, !site, !password, !uri, !uri_brief, !mailto, !date, !login_uri, !edit_uri, !login_url.',
  );
  $form['email_message']['message'] = array(
    '#type' => 'textarea',
    '#title' => t('Message'),
    '#default_value' => isset($import['message']) ? $import['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.',
  );
  $form['email_message']['message_format'] = array(
    '#type' => 'radios',
    '#title' => t('Email Format'),
    '#default_value' => isset($import['message_format']) ? $import['message_format'] : 0,
    '#options' => array(
      t('Plain Text'),
      t('HTML'),
    ),
  );
  $form['email_message']['message_css'] = array(
    '#type' => 'textarea',
    '#title' => t('CSS'),
    '#default_value' => isset($import['message_css']) ? $import['message_css'] : '',
    '#description' => t('Use if sending HTML formated email.'),
  );
  return;
}