Index: role_weights.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/role_weights/role_weights.install,v
retrieving revision 1.3
diff -u -r1.3 role_weights.install
--- role_weights.install	3 May 2006 18:13:28 -0000	1.3
+++ role_weights.install	5 Oct 2006 15:13:52 -0000
@@ -30,4 +30,8 @@
     }
   }
 
+  function role_weights_uninstall() {
+    db_query('DROP TABLE {role_weights}');
+  }
+
 ?>
Index: role_weights.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/role_weights/role_weights.module,v
retrieving revision 1.9
diff -u -r1.9 role_weights.module
--- role_weights.module	4 Aug 2006 12:14:05 -0000	1.9
+++ role_weights.module	5 Oct 2006 15:09:54 -0000
@@ -11,7 +11,7 @@
  */
 function role_weights_help($section) {
   switch ($section) {
-    case 'admin/modules#description':
+    case 'admin/settings/modules#description':
       return t('A small utility module to allow site admins to specify certain weights for user roles.');
   }
 }
@@ -20,12 +20,12 @@
  * Implementation of hook_form_alter().
  *
  * User.module's role handling is not fully Forms API
- * compliant, in that it doesn't trigger drupal_submit_form, 
+ * compliant, in that it doesn't trigger drupal_submit_form,
  * instead directly reading in the $_POST['edit']
  * array. Here we 'fix' this problem by altering the
  * submit behavior. This way, we can add to existing
  * role forms, and also act on role deletion (deleting
- * role_weights). 
+ * role_weights).
  */
 function role_weights_form_alter($form_id, &$form) {
   // Alter the 'user_admin_new_role' form to retheme.
@@ -38,7 +38,7 @@
     if (in_array($rid, array(DRUPAL_ANONYMOUS_RID, DRUPAL_AUTHENTICATED_RID))) {
       $form['name'] = array(
         '#type' => 'markup',
-        '#value' => t('<strong>%name</strong> (locked)', array('%name' => $form['name']['#default_value'])),
+        '#value' => t('<strong>!name</strong> (locked)', array('!name' => $form['name']['#default_value'])),
         '#weight' => -1
       );
     }
@@ -111,19 +111,19 @@
       // Handle the role deletion previously done in user_admin_role().
       db_query('DELETE FROM {role} WHERE rid = %d', $id);
       db_query('DELETE FROM {permission} WHERE rid = %d', $id);
-  
+
       // Update the users who have this role set:
       $result = db_query('SELECT DISTINCT(ur1.uid) FROM {users_roles} ur1 LEFT JOIN {users_roles} ur2 ON ur2.uid = ur1.uid WHERE ur1.rid = %d AND ur2.rid != ur1.rid', $id);
       $uid = array();
-  
+
       while ($u = db_fetch_object($result)) {
         $uid[] = $u->uid;
       }
-  
+
       if ($uid) {
         db_query('DELETE FROM {users_roles} WHERE rid = %d AND uid IN (%s)', $id, implode(', ', $uid));
       }
-  
+
       // Now delete weight data.
       db_query('DELETE FROM {role_weights} WHERE rid = %d', $id);
 
