You are here

function sharedemail_admin_settings in Shared Email 7

Same name and namespace in other branches
  1. 5 sharedemail.module \sharedemail_admin_settings()
  2. 6 sharedemail.module \sharedemail_admin_settings()

Configure Shared E-mail settings.

See also

system_settings_form()

1 string reference to 'sharedemail_admin_settings'
sharedemail_menu in ./sharedemail.module
Implements hook_menu().

File

./sharedemail.module, line 56
Allow an e-mail address to be used by more than one user account.

Code

function sharedemail_admin_settings($form, &$form_state) {
  $msg = t('WARNING: The e-mail address you are using has already been registered on this site by another user account. ' . 'You should be aware that personal information such as password resets will be sent to this address. ' . 'We strongly recommend changing your registered address to a different e-mail address. ' . 'You can do this at any time from your account page when you login.');
  $form['sharedemail_msg'] = array(
    '#type' => 'textarea',
    '#title' => t('Shared E-mail message'),
    '#default_value' => variable_get('sharedemail_msg', $msg),
    '#rows' => 15,
    '#description' => t('Warning message that is only displayed to users with appropriate permission, when they choose to save an e-mail address already used by another user.'),
  );
  return system_settings_form($form);
}