Issue #2194885 by Berdir | sun: Remove drupal_write_record().