You are here

function rules_action_data_create_array in Rules 7.2

Creation callback for array structured data.

Related topics

1 string reference to 'rules_action_data_create_array'
rules_test_rules_data_info_alter in tests/rules_test.rules.inc
Implements hook_rules_data_info_alter().

File

modules/data.eval.inc, line 340
Contains rules integration for the data module needed during evaluation.

Code

function rules_action_data_create_array($values, $type) {

  // $values is an array already, so we can just pass it to the wrapper.
  return rules_wrap_data($values, array(
    'type' => $type,
  ));
}