You are here

function rules_action_node_set_author_upgrade in Rules 7.2

File

includes/rules.upgrade.inc, line 432
Contains code for upgrading rule configurations from 6.x-1.x to 7.x-2.x.

Code

function rules_action_node_set_author_upgrade($element, $target) {
  $target->settings['data:select'] = $element['#settings']['#argument map']['node'] . ':author';
  $target->settings['value:select'] = $element['#settings']['#argument map']['author'];
}