Since body is now a field in Drupal 7, the syntax of nodes[foo][body] must be passed to node_save() in a slightly more verbose format of nodes[foo][body][und][0][value]. Additionally, from my testing, one must specify the input format: nodes[foo][body][und][0][format] = filtered_html.

Attached is a patch to the README.txt.

However, since this is obviously much more confusing, it might be nice to instead make this change in code, so people can still simply use nodes[foo][body] = "...".

Comments

jhedstrom’s picture

StatusFileSize
new531 bytes

That patch had a typo in the node format line. Corrected patch.

q0rban’s picture

Status: Needs review » Fixed
q0rban’s picture

Let's re-address your desire to have it remain 'body' in a separate feature request issue. :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.