? publish_checkbox_node_form.patch
Index: publishcontent.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/publishcontent/publishcontent.module,v
retrieving revision 1.8
diff -u -p -r1.8 publishcontent.module
--- publishcontent.module	24 Feb 2009 01:07:35 -0000	1.8
+++ publishcontent.module	24 Feb 2009 13:40:12 -0000
@@ -140,6 +140,24 @@ function publishcontent_views_tables_alt
 }
 
 /**
+ * Implementation of hook_form_alter().
+ */
+function publishcontent_form_alter($form_id, &$form) {
+  foreach (node_get_types() as $type) {
+    if ($type->type . '_node_form' == $form_id) {
+      if (($form['#node']->status && _publishcontent_unpublish_access($form['#node'])) ||
+          (!$form['#node']->status && _publishcontent_publish_access($form['#node']))) {
+            $form['status'] = array(
+              '#type' => 'checkbox',
+              '#title' => t('Published'),
+              '#default_value' => $form['#node']->status,
+            );
+      }
+    }
+  }
+}
+
+/**
  * display a link to publish a node
  */
 function publishcontent_views_handler_node_publish($fieldinfo, $fielddata, $value, $data, $destination = NULL) {
