You are here

function email_confirm_admin_settings in Email Change Confirmation 6

Same name and namespace in other branches
  1. 5 email_confirm.module \email_confirm_admin_settings()
  2. 7 email_confirm.module \email_confirm_admin_settings()

Implementation of hook_settings().

1 string reference to 'email_confirm_admin_settings'
email_confirm_menu in ./email_confirm.module
Implementation of hook_menu().

File

./email_confirm.module, line 45

Code

function email_confirm_admin_settings() {
  $form = array();
  $form['email_confirm_confirmation_email_subject'] = array(
    '#type' => 'textfield',
    '#title' => t('Email address change request email subject'),
    '#description' => t('The above text will be the subject for the email sent to a user that is attempting to update their email address. The placeholders !username and !site will be replaced by the username and the site name.'),
    '#default_value' => email_confirm_mail_text('email_confirm_confirmation_email_subject'),
    '#size' => 60,
    '#maxlength' => 256,
    '#required' => TRUE,
  );
  $form['email_confirm_confirmation_email_author'] = array(
    '#type' => 'textfield',
    '#title' => t('Email address change request email author'),
    '#default_value' => variable_get('email_confirm_confirmation_email_author', ''),
    '#size' => 60,
    '#description' => t('The above address will be the \'From\' email address for the confirmation email for an email address change request. If no address is supplied the default site email address will be used.'),
  );
  $form['email_confirm_confirmation_email_bcc'] = array(
    '#type' => 'textfield',
    '#title' => t('Email address change request email BCC email address'),
    '#default_value' => variable_get('email_confirm_confirmation_email_bcc', ''),
    '#size' => 60,
    '#description' => t('The above address will receive a BCC email copy of the confirmation email for an email address change request.'),
  );
  $form['email_confirm_confirmation_email_body'] = array(
    '#type' => 'textarea',
    '#title' => t('Email address change request email body'),
    '#description' => t("The above text will be the body for the email sent to a user that is attempting to update their email address. The text here will be sent to the user's new email address. The placeholders !username and !site will be replaced by the username and the site name."),
    '#default_value' => email_confirm_mail_text('email_confirm_confirmation_email_body'),
    '#cols' => 80,
    '#rows' => 10,
    '#required' => TRUE,
  );
  $form['email_confirm_confirmation_original_email_body'] = array(
    '#type' => 'textarea',
    '#title' => t('Email address change request email body (Original)'),
    '#description' => t("The above text will be the body for the email sent to a user that is attempting to update their email address. The text here will be sent to the user's original email address. The placeholders !username and !site will be replaced by the username and the site name."),
    '#default_value' => email_confirm_mail_text('email_confirm_confirmation_original_email_body'),
    '#cols' => 80,
    '#rows' => 10,
    '#required' => TRUE,
  );
  return system_settings_form($form);
}