### Eclipse Workspace Patch 1.0
#P cck_fullname
Index: cck_fullname.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cck_fullname/cck_fullname.module,v
retrieving revision 1.10.2.1
diff -u -r1.10.2.1 cck_fullname.module
--- cck_fullname.module	15 Sep 2010 02:04:31 -0000	1.10.2.1
+++ cck_fullname.module	2 Oct 2010 04:44:25 -0000
@@ -170,7 +170,7 @@
       );
 
       return $form;
-    
+
     case 'save':
       return array(
         'required_parts',
@@ -190,6 +190,7 @@
       }
       else {
         unset($columns['last']['length']);
+        unset($columns['last']['default']);
         $columns['last']['type'] = 'text';
         $columns['last']['size'] = 'big';
       }
@@ -200,6 +201,7 @@
       }
       else {
         unset($columns['first']['length']);
+        unset($columns['first']['default']);
         $columns['first']['type'] = 'text';
         $columns['first']['size'] = 'big';
       }
@@ -210,6 +212,7 @@
       }
       else {
         unset($columns['middle']['length']);
+        unset($columns['middle']['default']);
         $columns['middle']['type'] = 'text';
         $columns['middle']['size'] = 'big';
       }
@@ -220,16 +223,18 @@
       }
       else {
         unset($columns['prefix']['length']);
+        unset($columns['prefix']['default']);
         $columns['prefix']['type'] = 'text';
         $columns['prefix']['size'] = 'big';
       }
-      
+
       $columns['suffix'] = array('type' => 'varchar', 'length' => 30, 'not null' => FALSE, 'sortable' => TRUE, 'default' => '', 'views' => TRUE);
       if (!empty($field['max_length_suffix_legal']) && $field['max_length_suffix_legal'] <= 255) {
         $columns['suffix']['length'] = $field['max_length_suffix_legal'];
       }
       else {
         unset($columns['suffix']['length']);
+        unset($columns['suffix']['default']);
         $columns['suffix']['type'] = 'text';
         $columns['suffix']['size'] = 'big';
       }
@@ -654,14 +659,14 @@
 function theme_cck_fullname_form_element($element, $value) {
   // This is also used in the installer, pre-database setup.
   $t = get_t();
-  
+
   $output = '<div class="form-item"';
   if (!empty($element['#id'])) {
     $output .= ' id="'. $element['#id'] .'-wrapper"';
   }
   $output .= ">\n";
   $required = !empty($element['#is_required']) ? '<span class="form-required" title="'. $t('This field is required.') .'">*</span>' : '';
-  
+
   if (!empty($element['#title'])) {
     $title = $element['#title'];
     if (!empty($element['#id'])) {
@@ -671,15 +676,15 @@
       $output .= ' <label>'. $t('!title: !required', array('!title' => filter_xss_admin($title), '!required' => $required)) ."</label>\n";
     }
   }
-  
+
   $output .= " $value\n";
-  
+
   if (!empty($element['#description'])) {
     $output .= ' <div class="description">'. $element['#description'] ."</div>\n";
   }
-  
+
   $output .= "</div>\n";
-  
+
   return $output;
 }
 
@@ -700,24 +705,24 @@
   $class = array('form-text');
   $extra = '';
   $output = '';
-  
+
   if ($element['#autocomplete_path'] && menu_valid_path(array('link_path' => $element['#autocomplete_path']))) {
     drupal_add_js('misc/autocomplete.js');
     $class[] = 'form-autocomplete';
     $extra =  '<input class="autocomplete" type="hidden" id="'. $element['#id'] .'-autocomplete" value="'. check_url(url($element['#autocomplete_path'], array('absolute' => TRUE))) .'" disabled="disabled" />';
   }
   _form_set_class($element, $class);
-  
+
   if (isset($element['#field_prefix'])) {
     $output .= '<span class="field-prefix">'. $element['#field_prefix'] .'</span> ';
   }
-  
+
   $output .= '<input type="text"'. $maxlength .' name="'. $element['#name'] .'" id="'. $element['#id'] .'"'. $size .' value="'. check_plain($element['#value']) .'"'. drupal_attributes($element['#attributes']) .' />';
-  
+
   if (isset($element['#field_suffix'])) {
     $output .= ' <span class="field-suffix">'. $element['#field_suffix'] .'</span>';
   }
-  
+
   return theme('cck_fullname_form_element', $element, $output) . $extra;
 }
 
