function multiple_email_admin_settings in Multiple E-mail Addresses 5
Same name and namespace in other branches
- 6 multiple_email.module \multiple_email_admin_settings()
- 7 multiple_email.module \multiple_email_admin_settings()
- 2.x multiple_email.module \multiple_email_admin_settings()
Settings form for site configuration section
1 string reference to 'multiple_email_admin_settings'
- multiple_email_menu in ./
multiple_email.module - Implementation of hook_menu()
File
- ./
multiple_email.module, line 240 - multiple_email module file
Code
function multiple_email_admin_settings() {
$form['multiple_email_hide_field'] = array(
'#type' => 'select',
'#title' => t('Hide Email Field'),
'#description' => t('Hides the email field when editing a user'),
'#options' => array(
'No',
'Yes',
),
'#default_value' => variable_get('multiple_email_hide_field', 1),
);
$form['multiple_email_confirm_attempts'] = array(
'#type' => 'textfield',
'#size' => 4,
'#title' => t('Confirm Attempts'),
'#description' => t('How many times a user enters a confirmation code before a new one is generated. If set to 0, no new codes are sent after the first one.'),
'#default_value' => variable_get('multiple_email_confirm_attempts', 3),
);
$form['multiple_email_confirm_deadline'] = array(
'#type' => 'textfield',
'#size' => 4,
'#title' => t('Confirm Days'),
'#description' => t('How many days a user has to enter a confirmation code. If 0, emails pending confirmation do not expire.'),
'#default_value' => variable_get('multiple_email_confirm_deadline', 5),
);
$vars = '!username, !site, !email, !confirm_code, !confirm_url, !confirm_deadline';
$form['multiple_email_confirmation_subject'] = array(
'#type' => 'textfield',
'#title' => t('Confirmation Email Subject'),
'#description' => t('Customize the subject of the message to be sent when a user adds a new email to their account.') . '<br/>' . t('Available variables are:') . $vars,
'#default_value' => variable_get('multiple_email_confirmation_subject', multiple_email_default_subject('confirmation')),
);
$form['multiple_email_confirmation_body'] = array(
'#type' => 'textarea',
'#title' => t('Confirmation Email Body'),
'#description' => t('Customize the body of the message to be sent when a user adds a new email to their account.') . '<br/>' . t('Available variables are:') . $vars,
'#default_value' => variable_get('multiple_email_confirmation_body', multiple_email_default_body('confirmation')),
);
$form['multiple_email_expire_subject'] = array(
'#type' => 'textfield',
'#title' => t('Expire Email Subject'),
'#description' => t('Customize the subject of the message to be sent when an unconfirmed email address expires.') . '<br/>' . t('Available variables are:') . $vars,
'#default_value' => variable_get('multiple_email_expire_subject', multiple_email_default_subject('expire')),
);
$form['multiple_email_expire_body'] = array(
'#type' => 'textarea',
'#title' => t('Expire Email Body'),
'#description' => t('Customize the body of the message to be sent when an unconfirmed email address expires.') . '<br/>' . t('Available variables are:') . $vars,
'#default_value' => variable_get('multiple_email_expire_body', multiple_email_default_body('expire')),
);
return system_settings_form($form);
}