Index: term_fields.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/term_fields/term_fields.module,v
retrieving revision 1.7.2.3
diff -u -r1.7.2.3 term_fields.module
--- term_fields.module	26 Oct 2009 17:40:50 -0000	1.7.2.3
+++ term_fields.module	28 Nov 2009 12:02:38 -0000
@@ -61,15 +61,11 @@
 }
 
 /**
- * Implementation of hook_form_alter().
+ * Implementation of hook_form_FORM_ID_alter().
  */
-function term_fields_form_alter(&$form, &$form_state, $form_id) {
-  // we don't want our form to appear on the deletion confirmation screen
-  if (isset($_POST['op']) && $_POST['op'] == 'Delete') {
-    return;
-  }
-  
-  if ($form_id == 'taxonomy_form_term') {
+function term_fields_form_taxonomy_form_term_alter(&$form, &$form_state) {
+  // We don't want our form to appear on the deletion confirmation screen.
+  if (!(isset($_POST['op']) && $_POST['op'] == t('Delete')) || isset($_POST['confirm'])) {
     // shortcuts
     $tid = $form['tid']['#value'];
     $vid = $form['vid']['#value'];
