Revision Delete Rules
Categories
Component ID
2232315
Component name
Revision Delete Rules
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This module provides an action for rules to delete a node revision.
It is made with an attempt to cover the needs formulated in this issue https://drupal.org/node/1875468 of the node_revision_delete module.
I'm not sure if it should be a module on its own, or part of a bigger project (e.g. node_revision_delete and/or Revision Deletion
Other modules can act on the deletion of a revision by implementing hook_revision_delete_access_alter().
For example, integration with workflow_moderation could be added:
/**
* Implementation of hook_revision_delete_access_alter().
*/
function workflow_moderation_revision_delete_access_alter(&$access, $node) {
$access = _workbench_moderation_revision_access($node, 'delete');
}I'd love to hear your thoughts about this piece of code, and possible integrations.
