I want to change the value of a field for a node.I used the following code:
$node = node_load($nid); // $nid is the function's parameter $node->field['field_myfield'][$node->language]['value'] = 1; node_save($node);
The problem is
es while in
$node->language is different from what's in $node array and how can I get it?