Workflow/Revision moderation shack up

satori12 - October 16, 2007 - 02:37

"Shack up baby, shack up"

Anyway, I'm trying to get these two to work in a fairly rudimentary way. One thing I've tried to do is get the Edit revision form to contain the workflow fieldset. The way I did this was to change

<?php
function workflow_form_alter($form_id, &$form) {

  if (isset(
$form['type']) && $form['type']['#value'] .'_node_form' == $form_id) {
  ...
?>

to

<?php
 
if (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id || $form_id=='revision_moderation_edit' ) {
  ...
?>

which works brilliantly. Now can anyone suggest a way of doing this that doesn't involve hacking the module directly?

Thanks

Steve

 
 

Drupal is a registered trademark of Dries Buytaert.