When a node, taxonomy term, or taxonomy vocabulary was saved, the nid/vid/tid of the created object was added to the $form_state to allow other modules a chance to operate on them. This is also essential when using drupal_execute(); otherwise, there's no way to determine the nid of the node that was created.

This behavior was accidentally lost during a refactoring at some point in the past couple of months. The attached patch adds the line back in and also fixes a minor error in the drupal_execute() PHPdoc. Without it, the code snippet generates errors.

CommentFileSizeAuthor
node_save_results.patch1.59 KBeaton

Comments

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

U just code reviewed this but i think it is trivial enough to commit without deeper review.

moshe weitzman’s picture

er, "I" code reviewed this. I think it is RTBC.

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Hm, looks good, committed. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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