Index: og.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/og/og.module,v
retrieving revision 1.409
diff -u -p -r1.409 og.module
--- og.module	2 Dec 2007 03:10:35 -0000	1.409
+++ og.module	5 Dec 2007 06:45:18 -0000
@@ -1453,16 +1453,35 @@ function og_form_alter($form_id, &$form)
 
 // form_alter() the node_delete form for a group
 function og_node_delete_group_form(&$form) {
-  $options[] = t('Do nothing.');
-  $options[] = t('Delete all group posts which don\'t also belong to another group.');
+  $options[] = t("Do nothing.");
+  $options[] = t("Delete all group posts which don't also belong to another group.");
   if (user_access('administer nodes')) {
-    $options[] = t('Move all group posts to the group listed below.');
+    $options[] = t("Move all group posts to another group.");
   }
-  $form['verb'] = array('#type' => 'radios', '#title' => t('Group posts'), '#options' => $options, '#weight' => 0, '#description' => t('In addition to deleting this group, you may choose how to disposition the posts within it.'));
+  $form['verb'] = array(
+    '#type' => 'radios',
+    '#title' => t('Group posts'),
+    '#description' => t('In addition to deleting this group, you may choose how to disposition the posts within it.'),
+    '#options' => $options,
+    '#weight' => 0,
+  );
+  // make a css id for the above-mentioned radios.
+  $form['verb']['#attributes'] = array('id' => 'og-delete-group-radios');
+
   if (user_access('administer nodes')) {
     $options = og_all_groups_options();
     unset($options[$form['nid']['#value']]);
-    $form['target'] = array('#type' => 'select', '#title' => t('Target group'), '#default_value' => 0, '#options' => $options, '#weight' => 0, '#description' => t('If you chose <b>Move all group posts</b> above, specify a destination group.'));
+    $form['target'] = array(
+      '#type' => 'select',
+      '#title' => t('Target group'),
+      '#description' => '',
+      '#options' => $options,
+      '#default_value' => 0,
+      '#weight' => 0,
+    );
+    // make a css id for the above-mentioned dropdown menu.
+    $form['target']['#attributes'] = array('id' => 'og-delete-group-dropdown');
+
     // register a submit handler
     $form['#submit']['og_node_delete_confirm_submit'] = array();
   }
@@ -1499,7 +1518,7 @@ function og_node_delete_confirm_submit($
     $node = node_load($child_nid);
     unset($node->og_groups[$deleted_group_nid]);
     if ($move_children) {
-      // there is an array_unique() in og_save_ancestry which giards against duplicates so don't worry here.
+      // there is an array_unique() in og_save_ancestry which guards against duplicates so don't worry here.
       $node->og_groups[] = $target_group_nid;
     }
     if ($delete_orphans && count($node->og_groups) == 0) {
