You are here

function sharedemail_admin_settings in Shared Email 6

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

Configure Sharedemail settings

See also

system_settings_form()

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

File

./sharedemail.module, line 49
Allows users to share an email address

Code

function sharedemail_admin_settings() {
  $form = array();
  $msg = t('WARNING: The e-mail address you are using, has already been registered on this site by another user. ' . '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 Email 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 email address already used by another user.'),
  );
  return system_settings_form($form);
}