Index: webform.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.module,v
retrieving revision 1.179
diff -u -r1.179 webform.module
--- webform.module	10 Feb 2010 03:46:15 -0000	1.179
+++ webform.module	10 Feb 2010 05:01:15 -0000
@@ -431,6 +431,19 @@
   if (module_exists('form_builder') && strpos($_GET['q'], 'admin/build/form-builder') !== FALSE) {
     module_load_include('inc', 'webform', 'includes/webform.form_builder');
   }
+
+  // Use the administrative theme if set to use on content editing pages.
+  // See system_init().
+  if (variable_get('node_admin_theme', '0') && arg(0) == 'node' && (arg(2) == 'webform' || arg(2) == 'webform-results')) {
+    global $custom_theme;
+    $custom_theme = variable_get('admin_theme', '0');
+    drupal_add_css(drupal_get_path('module', 'system') .'/admin.css', 'module');
+
+    // Support for Admin module (1.x).
+    if (function_exists('_admin_init_theme')) {
+      _admin_init_theme();
+    }
+  }
 }
 
 /**
