I came up with this simple module to add a class to workflow form elements so that I could theme theme them on the edit form.
A better solution might be to add the name of the workflow to the class so that different workflows could be themed differently.
I was thinking this could we rolled into workflow, or maybe added in the contrib folder. Either way, I hope this helps somebody.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | workflowformclass.module | 578 bytes | joncup |
| workflowformclass.info | 168 bytes | joncup | |
| workflowformclass.module | 541 bytes | joncup |
Comments
Comment #1
joncup commentedI just made a small change to the module, aparently there is also a 'workflow' field element on admin/content/types/customtype
I just added a check to make sure arg(0) != 'admin'
Comment #2
Flying Drupalist commentedComment #3
Bastlynn commentedHi,
With the release of Drupal 7, Drupal 5 is no longer receiving security updates, reviews, or development from many contributed modules. Since 5 is now considered a depreciated version, you really should seriously look into upgrading to Drupal 6 or 7. The newer versions of Drupal work better, have more support, and will be safer (literally! security patches!) for your website. We are currently working on a new release for Workflow to Drupal 7. In light of that, further support for Drupal 5 issues is infeasible at the moment. Please consider upgrading to Drupal 6 or 7 in the near future - you'll be glad you did.
- Bastlynn