# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/rolekey/rolekey.module
--- contributions/modules/rolekey/rolekey.module Base (1.4.2.2)
+++ contributions/modules/rolekey/rolekey.module Locally Modified (Based On 1.4.2.2)
@@ -308,13 +308,13 @@
   }
   else {
     $form['name'] = array(
-      '#field_prefix' => '<strong>'. t('Name: ') .'</strong>',
+      '#field_prefix' => '<strong>'. t('Name:') .'</strong>',
       '#type' => 'textfield',
       '#size' => 15,
       '#maxlength' => 127,
     );
     $form['rolekey'] = array(
-      '#field_prefix' => '<strong>'. t('Key: ') .'</strong>',
+      '#field_prefix' => '<strong>'. t('Key:') .'</strong>',
       '#type' => 'textfield',
       '#size' => 15,
       '#maxlength' => 127,
@@ -510,6 +510,10 @@
     $form['checkboxes'][$kid] = array('#type' => 'checkboxes', '#options' => $options, '#default_value' => $status[$kid]);
     $form['role_names'][$kid] = array('#value' => $name, '#tree' => TRUE);
   }
+  // Remove warning in form.inc when only default roles exist
+  if(!count($options))
+    unset($form['checkboxes']);
+    
   $form['submit'] = array('#type' => 'submit', '#value' => t('Save roles'));
   return $form;
 }
