function email_confirm_admin_settings in Email Change Confirmation 7
Same name and namespace in other branches
- 5 email_confirm.module \email_confirm_admin_settings()
- 6 email_confirm.module \email_confirm_admin_settings()
Implements hook_settings().
1 string reference to 'email_confirm_admin_settings'
- email_confirm_menu in ./
email_confirm.module - Implements hook_menu().
File
- ./
email_confirm.module, line 65 - The Email Change Confirmation module.
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 [user:name] and [site:name] will be replaced by the username and the site name.'),
'#default_value' => email_confirm_mail_text('confirmation_email_subject', NULL, array(), FALSE),
'#size' => 60,
'#maxlength' => 256,
'#required' => TRUE,
);
$form['email_confirm_confirmation_email_author'] = array(
'#type' => 'textfield',
'#title' => t('Email address change request email author'),
'#description' => t('The above address will be the \'From\' email address for the confirmation email for an email address change request. The default value is the site email address set on the <a href="@site-info">Site information</a> admin page. If using the SMTP Authentication Support module, check that module\'s configuration page for setting the default site email address.', array(
'@site-info' => url('admin/config/system/site-information'),
)),
'#default_value' => variable_get('email_confirm_confirmation_email_author', email_confirm_default_confirmation_email_author()),
'#size' => 60,
);
$form['email_confirm_confirmation_email_bcc'] = array(
'#type' => 'textfield',
'#title' => t('Email address change request email BCC email address'),
'#description' => t('The above address will receive a BCC email copy of the confirmation email for an email address change request.'),
'#default_value' => variable_get('email_confirm_confirmation_email_bcc', ''),
'#size' => 60,
);
$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 [user:name] and [site:name] will be replaced by the username and the site name."),
'#default_value' => email_confirm_mail_text('confirmation_email_body', NULL, array(), FALSE),
'#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 [user:name] and [site:name] will be replaced by the username and the site name."),
'#default_value' => email_confirm_mail_text('confirmation_original_email_body', NULL, array(), FALSE),
'#cols' => 80,
'#rows' => 10,
'#required' => TRUE,
);
return system_settings_form($form);
}