function email_confirm_admin_settings in Email Change Confirmation 5
Same name and namespace in other branches
- 6 email_confirm.module \email_confirm_admin_settings()
- 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 48
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 %name and %site will be replaced by the username and the site name.'),
'#default_value' => variable_get('email_confirm_confirmation_email_subject', t('Email address change request for %name at %site')),
'#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 %name and %site will be replaced by the username and the site name."),
'#default_value' => variable_get('email_confirm_confirmation_email_body', t('Hello %name,
A request to change your email address has been made at %site.
You need to verify the change by clicking on the link below or by
copying and pasting it in your browser:
%email_url
This is a one-time URL - it can be used only once. It expires after
24 hours. If you do not click the link to confirm, your email address
at %site will not be updated.
')),
'#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 %name and %site will be replaced by the username and the site name."),
'#default_value' => variable_get('email_confirm_confirmation_original_email_body', t('Hello %name,
A request to change your email address has been made at %site.
In order to confirm the update of your email address you will
need to follow the instructions sent to your new email address
within 24 hours.
')),
'#cols' => 80,
'#rows' => 10,
'#required' => TRUE,
);
return system_settings_form($form);
}