# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- HEAD
+++ Modified In Working Tree
@@ -49,6 +49,22 @@
       )),
     ),
   );
+  $form['error_page']['r4032login_access_denied_message_type'] = array(
+    '#type' => 'select',
+    '#options' => array(
+      'error' => t('Error'), 
+      'warning' => t('Warning'), 
+      'status' => t('Status'), 
+    ),
+    '#weight' => 7,
+    '#title' => t("User login 'access denied' message type"),
+    '#default_value' => variable_get('r4032login_access_denied_message_type', 'error'),
+    '#states' => array(
+      'invisible' => array('input[name="r4032login_display_denied_message"]' => array(
+        'checked' => FALSE,
+      )),
+    ),
+  );
   $form['error_page']['r4032login_redirect_authenticated_users_to'] = array(
     '#type' => 'textfield',
     '#weight' => 7,
@@ -89,7 +105,8 @@
   if (user_is_anonymous()) {
     if (variable_get('r4032login_display_denied_message', TRUE)) {
       $message = variable_get('r4032login_access_denied_message', t('Access denied. You must log in to view this page.'));
-      drupal_set_message(t($message), 'error');
+      $message_type = variable_get('r4032login_access_denied_message_type', 'error');
+      drupal_set_message(t($message), $message_type);
     }
     // using drupal_goto() with destination set causes a recursive redirect loop
     $login_path = variable_get('r4032login_user_login_path', 'user/login');
