Index: role_weights.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/role_weights/role_weights.module,v
retrieving revision 1.10
diff -u -r1.10 role_weights.module
--- role_weights.module	29 Jan 2007 20:30:54 -0000	1.10
+++ role_weights.module	29 Jan 2007 23:17:44 -0000
@@ -3,20 +3,10 @@
 
 /**
  * @file
- * A small utility module to allow site admins to specify certain weights for user roles.
+ * Allows users to specify weights for user roles.
  */
 
 /**
- * Implementation of hook_help().
- */
-function role_weights_help($section) {
-  switch ($section) {
-    case 'admin/modules#description':
-      return t('A small utility module to allow site admins to specify certain weights for user roles.');
-  }
-}
-
-/**
  * Implementation of hook_form_alter().
  *
  * User.module's role handling is not fully Forms API
@@ -36,7 +26,9 @@
     $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']));
+      // DRUPAL-5 TODO - t() call with params (check @ is correct)
+      // DRUPAL-5 TODO - Changes to how #prefix and #suffix are rendered in form arrays - order changed!
+      $form['#prefix'] = t('<strong>@name</strong> (locked)', array('@name' => $form['name']['#default_value']));
       $form['name'] = array(
         '#type' => 'value',
         '#value' => $form['name']['#default_value'],
@@ -95,6 +87,8 @@
 
 /**
  * Submission from role_weights_admin form.
+ *
+ * DRUPAL-5 TODO: $_POST[op] deprecated in favor of $form_values[op] - relevant here?
  */
 function role_weights_admin_role_submit($form_id, $form_values) {
   $id = arg(4);
