Content by tag: "5.x"

User loading and saving in Drupal 6.x

jp.stacey 1 June 2009

Nearly a year ago I broke down user_load() and user_save() in Drupal 5. I had to put together workflows for a number of jobs, specifically integrating the creation, instantiation and updating of users with an external system. Fast forward nearly twelve months, and we have to do it all over again for D6, for different work.

User loading and saving in Drupal 5.x

jp.stacey 9 June 2008
Workflows of Drupal's user load and save functionality: spot the hooks and win a programmatical prize.

Recently at Torchbox we’ve been looking into how to build extra functionality on top of Drupal users. The standard Drupal user object is a combination of the contents from the users table, plus any properties provided by the core profile module. This means that the Drupal user is a combination of rows (and admittedly deserialized, structured data) from a couple of tables in a relational database.