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.
To help with #1402860: Panelizer is incompatible with moderation it would be useful if it was possible to customize the node history page.
Comment | File | Size | Author |
---|---|---|---|
#10 | workbench_moderation-n1868144-10.patch | 2.17 KB | DamienMcKenna |
Comments
Comment #1
DamienMcKennaThis adds
drupal_alter('workbench_moderation_node_history_view', $rows);
Comment #2
xtfer CreditAttribution: xtfer commentedThis is such a minor patch I can't see any issues with RTBC'ing it. Its "working" locally for me.
Comment #3
stevectorInteresting idea. Thanks for the patch.
A change like this would at least need an entry in workbench_moderation.api.php since it introduces a new hook. Can you give me an example of how you're using it?
Comment #4
DamienMcKennaI'm trying to use it over in #1871552: Panelizer does not work well with workbench and entity revisions. to aid with integrating Workbench Moderation with Panelizer.
How does this patch work for you?
Comment #5
DamienMcKennaComment #6
hass CreditAttribution: hass commentedThis example could be optimized. First add the links to an array and after the foreach(), execute an
implode(' | ', $foo)
Looks good to go than.
Comment #7
DamienMcKennaI tidied up the hook_workbench_moderation_node_history_view_alter() example in the API file.
Comment #9
DamienMcKennaFixed a typoo, and added a comment above the drupal_alter() call.
Comment #10
DamienMcKennaUpdated with more documentation for the hook and an improved example.
Comment #11
DamienMcKennaIs this something the 1.x maintainers are interested in?