function workbench_moderation_revision_operation_process in Revision scheduler 7
Revision operation process callback for scheduled moderation state changes.
1 string reference to 'workbench_moderation_revision_operation_process'
- workbench_moderation_entity_revision_operation_info in ./
revision_scheduler.module - Implements hook_entity_revision_operation_info().
File
- ./
revision_scheduler.module, line 942
Code
function workbench_moderation_revision_operation_process($entity, $operation) {
// Extract the transition to state from the operation key: 'workbench_moderation_state'.
$state = substr($operation->operation, 21);
workbench_moderation_moderate($entity, $state);
}