# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /www/qualcomm/localhost_external-websites/welcome-qualcomm-com/sites/all/modules/r4032login
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: r4032login.module
--- r4032login.module Base (BASE)
+++ r4032login.module Locally Modified (Based On LOCAL)
@@ -37,16 +37,29 @@
 
 function r4032login_admin_settings() {
   $form = array();
-  $form['r4032login_display_denied_message'] = array(
+  $form['r4032login_denied'] = array(
+    '#type' => 'fieldset',
+    '#title' => '',
+  );
+  $form['r4032login_denied']['r4032login_access_denied_message'] = array(
+    '#type' => 'textfield',
+    '#title' => t('User/login \'access denied\' message'),
+    '#description' => t('The message to display when an anonymous user tries to reach a logged-in-only page.'),
+    '#default_value' => variable_get('r4032login_access_denied_message', t('Access denied (You must login to view that page)')),
+    '#weight' => '1',
+  );
+  $form['r4032login_denied']['r4032login_display_denied_message'] = array(
     '#type' => 'checkbox',
-    '#title' => t('Display access denied message on login page'),
-    '#default_value' => variable_get('r4032login_display_denied_message', TRUE)
+    '#title' => t('Display the \'Access Denied\' message on user/login page'),
+    '#default_value' => variable_get('r4032login_display_denied_message', TRUE),
+    '#weight' => '2',
   );
   $form['r4032login_user_register_message'] = array(
     '#type' => 'textfield',
-    '#title' => t('User register message'),
+    '#title' => t('User/register message'),
     '#description' => t('The message to display when a logged-in user tries to register another account through the !new_account. Drupal does not allow it, so regular users must log out first. Administrators should create new users in !link.', array('!new_account' => l('new account registration form', 'user/register'), '!link' => l(t('User management'), 'admin/user/user/create'))),
-    '#default_value' => variable_get('r4032login_user_register_message', t('You are not authorized to access this page.'))
+    '#default_value' => variable_get('r4032login_user_register_message', t('Access denied (users should log out of their current account before creating a new account)')),
+    '#weight' => '3',
   );
   return system_settings_form($form);
 }
@@ -76,7 +89,7 @@
   global $user;
   if ($user->uid == 0) {
     if (variable_get('r4032login_display_denied_message', TRUE)) {
-      drupal_set_message(t('Access denied. You must login to view this page.'), 'error');
+      drupal_set_message(t(variable_get('r4032login_access_denied_message', 'Access denied (You must login to view that page)')), 'error');
     }
     // using drupal_goto() with destination set causes a recursive redirect loop
     header('Location: '. url('user/login', array('query' => 'destination='. drupal_urlencode($_REQUEST['q']), 'absolute' => TRUE)), TRUE, 302);
@@ -93,12 +106,12 @@
   }
 }
 
-function theme_r4032login_denied() {
+function theme_r4032login_user_register() {
   drupal_set_title(t('Access denied'));
-  return '<p>'. t('You are not authorized to access this page.') .'</p>';
+  return '<p>'. variable_get('r4032login_user_register_message', t('Access denied (users should log out of their current account before creating a new account)')) .'</p>';
 }
 
-function theme_r4032login_user_register() {
+function theme_r4032login_denied() {
   drupal_set_title(t('Access denied'));
-  return '<p>'. variable_get('r4032login_user_register_message', t('You are not authorized to access this page.')) .'</p>';
\ No newline at end of file
+  return '<p>'. t('You tried to access the User Login page, but you are already logged in.') .'</p>';
 }
