Drupal 7: Anlegen und Aktualisieren von Nodes via Code

Group 42 erklärt wie man mittels node_save() Nodes aus Code heraus anlegen und aktualisieren kann.

A quick note for those of you familiar with Drupal 6. You’ll notice two changes in Drupal 7:
Body Field Is No Longer Special
In Drupal 6 the body field was special. Specifically, it had a different data structure than other fields and it always existed, even if it wasn’t used. With Drupal 7 the body field is a standard field provided by core and is truly optional.
Language
Language specification is required for the node and some fields.

Possibly related posts (automatically generated)