? vertical_tabs_cck.patch
Index: vertical_tabs.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/vertical_tabs/vertical_tabs.module,v
retrieving revision 1.1.2.19
diff -u -p -r1.1.2.19 vertical_tabs.module
--- vertical_tabs.module	19 May 2009 01:39:32 -0000	1.1.2.19
+++ vertical_tabs.module	29 Jun 2009 09:38:33 -0000
@@ -43,6 +43,12 @@ function vertical_tabs_form_alter(&$form
       if (in_array($key, $fieldsets) &&
         (isset($form[$key]['#type']) && $form[$key]['#type'] == 'fieldset') &&
         (!isset($form[$key]['#access']) || $form[$key]['#access'] != FALSE)) {
+        // Assign weights to core fields that CCK manages. They aren't set yet
+        // during hook_form_alter(), so find and update the weight here.
+        if (module_exists('content')) {
+          $weight = content_extra_field_weight($node_type, $key);
+          $form[$key]['#weight'] = !empty($weight) ? $weight : $form[$key]['#weight'];
+        }
         // Add the JavaScript.
         $settings[$key] = array(
           'name' => $form[$key]['#title'],
