Code function() for Insert Update Delete of Drupal 7