You are here

function workflow_ng_action_node_publish_upgrade in Rules 6

The following functions help converting node actions when upgrading from workflow-ng

Related topics

File

rules/modules/node.rules_forms.inc, line 128
Rules configuration forms for the node module

Code

function workflow_ng_action_node_publish_upgrade(&$element) {
  $element['#name'] = $element['#settings']['published'] ? 'rules_core_node_publish_action' : 'rules_core_node_unpublish_action';
  $element['#settings'] = array(
    'auto_save' => TRUE,
  );
}