You are here

function sharedemail_admin_settings in Shared Email 5

Same name and namespace in other branches
  1. 6 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 53
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('Sharedemail Message'),
    '#default_value' => variable_get('sharedemail_msg', $msg),
    '#rows' => 15,
    '#description' => t('The warning message to display to the user when they enter in an e-mail address already used by another user.'),
  );
  return system_settings_form($form);
}