? nodeform/.svn
? nodeform/accordion/.svn
? nodeform/vertical_tabs/.svn
Index: nodeform/nodeform.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodeform/nodeform.module,v
retrieving revision 1.5
diff -u -p -r1.5 nodeform.module
--- nodeform/nodeform.module	7 Mar 2008 19:09:53 -0000	1.5
+++ nodeform/nodeform.module	26 May 2008 04:09:42 -0000
@@ -58,3 +58,19 @@ function nodeform_settings_form_submit($
     variable_set('nodeform_layout', $form_state['values']['nodeform_layout']);
   }
 }
+
+if (!function_exists('phptemplate_fieldset')) {
+  function phptemplate_fieldset($element) {
+    // If we're currently at a node form, prepare all fieldsets (except
+    // input formats) for further manipulation by jQuery and CSS.
+    if (arg(0) == 'node' && (arg(1) == 'add' && arg(2)) || (is_numeric(arg(1)) && arg(2) == 'edit')) {
+      if ($element['#parents'][0] != 'format') {
+        $element['#attributes']['id'] = form_clean_id('edit-'. implode('-', $element['#parents']) .'-fieldset');
+        $element['#attributes']['class'] = 'nodeform-fieldset';
+      }
+    }
+
+    // Pass the element on to the original theme function for theming.
+    return theme_fieldset($element);
+  }
+}
