How to edit fields' values in the hook_node_load function? In the hook_node_load function I want to alter a field's value.
I printed the node variable and got the following structure for the field:



    [field_myfield] => Array
        (
            [und] => Array
                (
                    [0] => Array
                        (
                            [value] => 1316760775
                        )

                )

        )



So I should write something like $node-&gt;field_myfield[und][0]['value'] = 'sth'. My site has 2 available languages, and [und] will be changed when language is changed.
How can I alter the field value for all languages?
I'd go with entity_metadata_wrapper(), see this blog post for more info on that.

$node = node_load(323);
$wrapper = entity_metadata_wrapper('node', $node);
$wrapper-&gt;title = 'New title for the node';
$wrapper-&gt;save();


It works for any property: title, fields, author, etc.