nodes for breakfast

we eat nodes for breakfast

Recent posts

Programatically create scheduled Drupal backups with Backup & Migrate

Fri, 02/21/2014 - 11:38 -- m.stenta

Drupal's Backup & Migrate module is great for creating database snapshots on a scheduled basis. It's easy enough to set up a scheduled backup manually through the module's UI, but what if you want to set one up programatically? For instance, maybe you want to automatically set up a scheduled backup during the initial site installation (either via a custom module or installation profile).

Programmatically execute a Feeds importer in Drupal 7

Sun, 09/23/2012 - 18:40 -- m.stenta

The Feeds module is great for importing content into Drupal. One of the most frequent things I use it for is importing content via uploaded CSV files.

The default form for uploading the file, provided by Feeds, is great, but I needed to write something a little more customized recently. During the process, I had to figure out how to programmatically execute Feeds importers. I dug into the Feeds module's code and got a pretty good feel for it.