How To Insert and Update Only Specific Fields Of Your Entity In Drupal 7

Time from time you need to update single or several specific fields of your entity in Drupal. It can be node, comment, taxonomy or some other custom entity. So how do we usually do this? Let's see:

1
2
3
4
5
6
7
  1. $node = node_load(1); // 1 is node ...
Read now