--- webfm.module.orig	2007-05-08 16:46:46.000000000 +0200
+++ webfm.module	2007-05-08 17:03:16.000000000 +0200
@@ -378,16 +378,18 @@
 function webfm_form_alter($form_id, &$form) {
   global $base_url;
 
+  if ($form_id == 'node_type_form') {
+    $form['workflow']['wfm_attach'] = array(
+      '#type' => 'radios',
+      '#title' => t('WebFM Attachments'),
+      '#default_value' => variable_get('wfm_attach_'. $form['#node_type']->type, 1),
+      '#options' => array(0 => t('Disabled'), 1 => t('Enabled')),
+      '#description' => t('Should this node allow users to upload and attach files via WebFM?'),
+    );
+  }
   if (isset($form['type'])) {
-    if ($form['type']['#value'] .'_node_settings' == $form_id) {
-      $form['workflow']['wfm_attach_'. $form['type']['#value']] = array(
-        '#type' => 'radios', '#title' => t('Webfm Attachments'), '#default_value' => variable_get('wfm_attach_'. $form['type']['#value'], 1),
-        '#options' => array(t('Disabled'), t('Enabled')),
-      );
-    }
-
     $node = $form['#node'];
-    if (user_access('attach WebFM files') && $form['type']['#value'] .'_node_form' == $form_id && variable_get("wfm_attach_$node->type", TRUE)) {
+    if (user_access('attach WebFM files') && $form['type']['#value'] .'_node_form' == $form_id && variable_get("wfm_attach_$node->type", 1)) {
 
       $modulepath = drupal_get_path('module', 'webfm');
       drupal_add_js($modulepath.'/js/webfm.js');
