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. $node = node_load(1); // 1 is node id we want to load
  2. // Change field ...
Read now