Tag Archives: Node

How to deal with translated nodes programmatically

I had to import four different languages nodes into my Drupal 7 installation programmatically. It’s easy when you know where to begin with.

First, you have to enable different languages you will use into your Drupal administration. For example, I used

Create a node content type programmatically

If you’re a new Drupal user, you may have already created a fresh content type manually to organize your site correctly. But what happens if you want to create this content type with your module installation and don’t want to do it manually each type you install it on a new website ?. Here is how to create a content type programmatically with Drupal 7.  Read More →