Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In extending the workbench_moderation module, it has become necessary for us to allow more than one module to control whether or not to proceed with state alterations on moderation forms.
It would be great if, instead of simply testing whether or not a module type is enabled for moderation, workbench_moderation_form_node_form_alter() called a hook function to determine if it should proceed.
The check on content type could then happen in an implementation of that hook function.
Comment | File | Size | Author |
---|---|---|---|
#3 | workbench_hook_proceed_2194519_2.patch | 5.64 KB | srjosh |
#1 | workbench_hook_proceed_2194519.patch | 1.76 KB | srjosh |
Comments
Comment #1
srjoshComment #2
srjoshHmm - seems that that functionality is invoked in more than one place. Better patch forthcoming.
Comment #3
srjoshTry this - it replaces the node-type moderation check with a node-specific check. This node-specific function then runs the check on type, and throws a drupal_alter on the results to allow other modules to manipulate that result if needed.
Comment #5
srjosh