You are here

function node_field_set_node_fields in Node Field 7.2

Set node_fields node param.

Parameters

object $node: Node to set node fields for.

array $node_fields: Array of node fields.

bool $set_changed_param: Whether to set node_fields_changed flag in node or not.

1 call to node_field_set_node_fields()
node_field_init_node_fields in includes/node_field.api.inc
Init $node->node_fields param.

File

includes/node_field.api.inc, line 30
API and helpers functions for Node Field module.

Code

function node_field_set_node_fields($node, array $node_fields, $set_changed_param = TRUE) {
  $node->node_fields = $node_fields;
  if ($set_changed_param) {
    $node->node_fields_changed = TRUE;
  }
}