It's not well documented (http://drupal.org/node/408876), but if we update the schema and add 'serialize' => TRUE, drupal_write_record() automatically runs serialize and unserialize. This is helpful when you are trying to create the profiles via code. Patch follows.

CommentFileSizeAuthor
#1 serialize-1285664_1.patch451 bytesfrankcarey

Comments

frankcarey’s picture

StatusFileSize
new451 bytes

I don't think an update is required per se since this is a rather trivial change as far as the schema goes, but schema IS cached, so it would require a cache clear to avoid warnings when using it with drupal_write_record().

erikwebb’s picture

Category: bug » feature
Status: Active » Needs work

In addition to changing the schema, all uses of unserialize()/serialize() would also need to be reviewed.

FYI - this was changed in the D7 version.

erikwebb’s picture

Status: Needs work » Closed (won't fix)

Since this is working for now and all development focus has moved to D7 versions, I'm going to mark this as won't fix.