Index: admin_warning.admin.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/admin_warning/admin_warning.admin.inc,v
retrieving revision 1.1
diff -u -p -r1.1 admin_warning.admin.inc
--- admin_warning.admin.inc	3 Feb 2009 00:52:38 -0000	1.1
+++ admin_warning.admin.inc	11 Mar 2009 15:55:13 -0000
@@ -31,6 +31,13 @@ function admin_warning_settings_form() {
     '#description' => t('Enter a list of form IDs for which the site administrator warning will <em>not</em> be shown. Put each form ID on a separate line. The site administrator warning will be shown at the top of all forms except those listed here.'),
     '#default_value' => admin_warning_settings('admin_warning_excluded_form_ids'),
   );
+  $form['admin_warning_show_to_uid_1'] = array(
+    '#type' => 'radios',
+    '#title' => t('Show the warning to the superuser (user #1)'),
+    '#description' => t('Since the superuser always has all permissions on the site, it is recommended that you leave this setting at "Yes" and only log in as the superuser when you need to do critical site administration work.'),
+    '#options' => array(TRUE => t('Yes'), FALSE => t('No')),
+    '#default_value' => admin_warning_settings('admin_warning_show_to_uid_1'),
+  );
   return system_settings_form($form);
 }
 
Index: admin_warning.install
===================================================================
RCS file: /cvs/drupal/contributions/modules/admin_warning/admin_warning.install,v
retrieving revision 1.1
diff -u -p -r1.1 admin_warning.install
--- admin_warning.install	2 Feb 2009 21:07:58 -0000	1.1
+++ admin_warning.install	11 Mar 2009 15:55:13 -0000
@@ -5,4 +5,5 @@ function admin_warning_uninstall() {
   // Delete variables.
   variable_del('admin_warning_message_text');
   variable_del('admin_warning_excluded_form_ids');
+  variable_del('admin_warning_show_to_uid_1');
 }
Index: admin_warning.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/admin_warning/admin_warning.module,v
retrieving revision 1.2
diff -u -p -r1.2 admin_warning.module
--- admin_warning.module	3 Feb 2009 00:52:38 -0000	1.2
+++ admin_warning.module	11 Mar 2009 15:55:13 -0000
@@ -54,7 +54,8 @@ function admin_warning_menu() {
 function admin_warning_form_alter(&$form, $form_state, $form_id) {
   // Only show the warning to site administrators viewing one of the
   // non-excluded forms.
-  if (user_access('see the site administrator warning') && !in_array($form_id, admin_warning_excluded_forms())) {
+  global $user;
+  if ((user_access('see the site administrator warning') && ($user->uid != 1 || admin_warning_settings('admin_warning_show_to_uid_1'))) && !in_array($form_id, admin_warning_excluded_forms())) {
     $form['admin_warning_message'] = array(
       '#type' => 'markup',
       '#prefix' => '<div>',
@@ -102,6 +103,9 @@ function admin_warning_settings($variabl
       );
       $default_value = implode("\r", $default_excluded_form_ids);
       break;
+    case 'admin_warning_show_to_uid_1':
+      $default_value = TRUE;
+      break;
   }
   if (isset($default_value)) {
     return variable_get($variable_name, $default_value);
