Hi Folks

I started working on modifying twitter module by creating functionality which would save tweets as nodes rather keeping them separately.
I was trying to understand the code bit where they save tweets into db. Code says drupal_write_record('twitter', $status);
i was wondering how do they ensure duplicate entries are not created?

Would be great if somebody helped to understand the code.

Thanks

Comments

abraham’s picture

Status: Active » Fixed

drupal_write_record is a Drupal core function. You can check it out here: http://api.drupal.org/drupal_write_record

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.