What is the proper way to extend the workflow tab page with other modules? Should the workflow_tab_page() function be implemented at the theme level so it can be over-rided? Or perhaps module_invoke_all can be used to extend workflow_tab_page functionality?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

v1nce’s picture

Status: Active » Needs review
FileSize
1.62 KB

The following patch adds two new themes to the workflow_tab_page function, which is the simplest and cleanest solution for site developers to extend the workflow history table without modifying the workflow.module. This allows a custom module to implement an ALTER table on hook_install() to the workflow_node_history table and the info will be passed to the new theme within the $history variable that workflow module calls by default. The order of the rows and columns can also be easily changed using the theme override functions.

v1nce’s picture

Corrected typo for $old_state_name variable.

jvandyk’s picture

Status: Needs review » Fixed

Thanks. Will be included in the next release.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.