function rules_action_add_node_upgrade

File

includes/rules.upgrade.inc, line 459

Code

function rules_action_add_node_upgrade($element, $target) {
    $target->settings['type'] = 'node';
    rules_upgrade_element_parameter_settings($element, $target, 'title', 'param_title');
    rules_upgrade_element_parameter_settings($element, $target, 'author', 'param_author');
    rules_upgrade_element_parameter_settings($element, $target, 'type', 'param_type');
    rules_upgrade_element_variable_settings($element, $target, 'node_added', 'entity_created');
    if (!empty($element['#settings']['node_access'])) {
        drupal_set_message(t('Warning: The node-access check option for the node creation action is not supported any more.'));
    }
}