--- taxonomynode.module	2009-07-30 17:35:46.000000000 +0100
+++ taxonomynodeNew.module	2010-04-13 11:43:03.000000000 +0100
@@ -212,6 +212,12 @@ function taxonomynode_form_alter(&$form,
       '#title' => t('Batch create'),
       '#description' => t('Select this checkbox if you want to create content types of the current terms inside this vocabulary. <b>There is a limit of 50 nodes to prevent the script from timeout. If you have more than 50 terms you will have to edit and check this box until you get a "0" nodes created message.</b>'),
     );
+    $form['taxonomynode']['taxonomynode_node_title'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Allow different node title'),
+      '#default_value' => $taxonomynode_settings['node_title'],
+      '#description' => t('Select this checkbox if you want to allow editing the title of the nodes after their automatic creation</b>'),
+    );
   }
 
   if ($form_id == 'taxonomy_form_term') {
@@ -273,13 +279,16 @@ function taxonomynode_form_alter(&$form,
           '#type' => 'value',
           '#value' => $form['taxonomy'][$vid]['#default_value'],
         );
-        $form['title_disabled'] = $form['title'];
-        $form['title_disabled']['#disabled'] = TRUE;
-        $form['title_disabled']['#required'] = FALSE;
-        $form['title'] = array(
-          '#type' => 'hidden',
-          '#value' => $form['title']['#default_value'],
-        );
+        if ($taxonomynode_settings['node_title'] == 'FALSE') {
+          $form['title_disabled'] = $form['title'];
+          $form['title_disabled']['#disabled'] = TRUE;
+          $form['title_disabled']['#required'] = FALSE;
+          $form['title'] = array(
+            '#type' => 'hidden',
+            '#value' => $form['title']['#default_value'],
+          );
+        }
+                
         if (!TAXONOMYNODE_SETTINGS_NODE_OPERATIONS) {
           unset($form['buttons']['delete']);
         }
@@ -321,6 +330,7 @@ function taxonomynode_taxonomy($op, $typ
         drupal_set_message(t('Taxonomy Node: You have changed your content type selection. If nodes have been created with the old content type, you will have to manually remove the already created nodes for each of the terms of this vocabulary as well as unset the old content type from the <i>Types</i> associated to this vocabulary.'));
       }
       $taxonomynode_settings['content_type'] = $content_type;
+      $taxonomynode_settings['node_title'] = $array['taxonomynode_node_title'];      
       variable_set("taxonomynode_{$vid}", $taxonomynode_settings);
       // force vocabulary to have the assigned content as Type
       if ($content_type) {
@@ -471,4 +481,4 @@ function taxonomynode_settings() {
   );
 
   return system_settings_form($form);
-}
\ No newline at end of file
+}
