Monthly Archives: September 2011

db_query() and db_placeholders() example #1

Have you ever wondered how to properly build a query like this in Drupal:

This requires the use of db_placeholders() to create the placeholder ‘ ‘, ‘ ‘, etc.

where $node_types is an array of node types.

Tagged with: , , , , ,
Posted in Development

Automatically create a Drupal node when a user registers

Sometimes projects come up that have requirements that cannot be solved with an out-of-the-box Drupal install. A project I worked on some time ago required that I store a node every time a user registered for an account. The details

Tagged with: , ,
Posted in Development