? .svn
? workflow.patch
? includes/.svn
? translations/.svn
Index: workflow.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/workflow/workflow.module,v
retrieving revision 1.83
diff -u -p -r1.83 workflow.module
--- workflow.module	1 Jan 2009 21:09:16 -0000	1.83
+++ workflow.module	28 Apr 2009 16:41:41 -0000
@@ -1508,4 +1508,27 @@ function workflow_token_list($type = 'al
   }
 
   return $tokens;
+}
+
+/**
+* Implementation of hook_content_extra_fields.
+*
+* Information for the positioning of non-CCK contrib fields
+* @see content_extra_field_weight()
+* 
+* Workflow inserts its widget into the node edit form low in the page, but cck
+* then scrambles the node edit form when the 'body' is repositioned. Allow the
+* CCK UI to fix that and place the widget where you want.
+*/
+function workflow_content_extra_fields($type_name) {
+  $extra = array();
+  if (!in_array('node', variable_get('workflow_' . $type_name, array('node')))) {
+    return;
+  }
+  $extra['workflow'] = array(
+    'label' => t('Workflow'),
+    'description' => t('The nodes workflow state'),
+    'weight' => 10,
+  );
+  return $extra;
 }
\ No newline at end of file
