Why is "save post" trigger automatically added...

brisath - September 23, 2009 - 06:07
Project:Workflow
Version:6.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

when I add a trigger for "Make post private to its groups"?

#1

jweowu - October 7, 2009 - 02:39

Lots of actions update a node object in memory, but do not save it to the database.

They flag this by setting 'changes_node_property' in their hook_action_info() definition.

trigger_assign_form_submit() picks up on that property, and appends node_save_action to the list of actions.

#2

brisath - October 7, 2009 - 07:40
Status:active» closed

Thanks for the explanation. I assume I should just leave it as is, and not delete any of these "save post" triggers because it won't interfere with the intended action.

#3

jweowu - October 7, 2009 - 20:36

Yes, deleting the "save post" action would mean that the changes made by the other action would be lost.

 
 

Drupal is a registered trademark of Dries Buytaert.