Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#2 | workflow_history_table_patch_1.txt | 1.62 KB | v1nce |
#1 | workflow_history_table_patch_0.txt | 1.62 KB | v1nce |
Comments
Comment #1
v1nce CreditAttribution: v1nce commentedThe 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.
Comment #2
v1nce CreditAttribution: v1nce commentedCorrected typo for $old_state_name variable.
Comment #3
jvandyk CreditAttribution: jvandyk commentedThanks. Will be included in the next release.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.