You are here

function workflow_ng_action_populate_field_upgrade in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 includes/content.rules.inc \workflow_ng_action_populate_field_upgrade()

File

includes/content.rules.inc, line 195
Provides basic rules module support.

Code

function workflow_ng_action_populate_field_upgrade(&$element) {
  $element['#name'] = 'content_rules_action_populate_field';
  $element['#settings']['code'] = $element['#settings']['default_value_php'];
  $element['#settings'][$element['#settings']['field_name']] = array();
  unset($element['#settings']['default_value_php']);
}