#312978 by cpennington . Delete groups form is misleading/incorrect.
authormoshe weitzman
Thu, 2 Oct 2008 03:16:07 +0000 (03:16 +0000)
committermoshe weitzman
Thu, 2 Oct 2008 03:16:07 +0000 (03:16 +0000)
og.module

index 5561246..afb3aa2 100644 (file)
--- a/og.module
+++ b/og.module
@@ -1594,9 +1594,9 @@ function og_node_delete_group_form(&$form) {
     $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.'));
-    // register a submit handler
-    $form['#submit']['og_node_delete_confirm_submit'] = array();
   }
+  // register a submit handler
+  $form['#submit']['og_node_delete_confirm_submit'] = array();
   $form['actions']['submit']['#value'] = t('Delete group');
 }