Get text field value before saving node I have a a custom module in which I am implementing hook_node_presave() for a content type "ABC".

I want to get the value of a text field say 'field_test' before saving the node. 

How to do this.
Use the following code,

$value = $node-&gt;field_test[$node-&gt;language][0]['value']


This to get the value for the text field alone for other fields format will chage.