This patch adds two features and fixes one bug that widen the range of ways third party modules can integrate with Scheduler;
- Implementations of
hook_scheduler_api()can now receive
hook_scheduler_api()is now also invoked before publishing and unpublishing with "
pre_publish" and "
pre_unpublish" actions respectively.
- BUG: The
$nodeobject still has
actions_do()is called. This causes the value to be saved to the database again if any module that does an asynchronous
scheduler_workbench_scheduler_api()can trigger moderation-state changes via the
$node->workbench_moderation_state_newproperty, which is more reliable, thorough and efficient than calling
workbench_moderation_moderate()after the node is already published by scheduler. It also means that the node only passes through one moderation state transition instead of two.
- Workbench Moderation has a
node_save()s as drupal shuts down, restoring
unpublish_ondates to the
Related patch for Scheduler Workbench Integration module;