Index: role_weights.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/role_weights/role_weights.module,v
retrieving revision 1.2.2.4
diff -u -r1.2.2.4 role_weights.module
--- role_weights.module	29 Jan 2007 19:35:14 -0000	1.2.2.4
+++ role_weights.module	29 Jan 2007 20:08:16 -0000
@@ -36,10 +36,10 @@
     $rid = arg(4);
     // Lock the anonymous and authenticated roles.
     if (in_array($rid, array(DRUPAL_ANONYMOUS_RID, DRUPAL_AUTHENTICATED_RID))) {
+      $form['#prefix'] = t('<strong>%name</strong> (locked)', array('%name' => $form['name']['#default_value']));
       $form['name'] = array(
-        '#type' => 'markup',
-        '#value' => t('<strong>%name</strong> (locked)', array('%name' => $form['name']['#default_value'])),
-        '#weight' => -1
+        '#type' => 'value',
+        '#value' => $form['name']['#default_value'],
       );
     }
 
@@ -80,7 +80,7 @@
  * Based on theme_user_admin_new_role(), this version
  * doesn't lock anonymous and authenticated user
  * links, as we need to be able to navigate to them
- * to provide weights. We will lock then in the role
+ * to provide weights. We will lock them in the role
  * admin form instead.
  */
 function theme_role_weights_admin_new_role($form) {
@@ -90,7 +90,10 @@
   }
   $rows[] = array(form_render($form['name']), form_render($form['submit']));
 
-  return theme('table', $header, $rows);
+  $output = theme('table', $header, $rows);
+  $output .= form_render($form);
+
+  return $output;
 }
 
 /**
