Because webform_update() routes webform_insert(), which ends with a drupal_goto(), webform nodes are not hookable via nodeapi $op=='update'.

Is the drupal_goto() on line 121 even necessary?

Comments

joshk’s picture

Title: Webform Breaks Nodeapi $op=='update' » Remove drupal_goto from webform_insert()

I've commented out line 121 and everything continues to function normally. Considering that this short-circuits drupal in the midst of the nodeapi chain, this should probably be removed.

quicksketch’s picture

Status: Active » Fixed

Thanks, I've removed this line and applied the patch supplied by yched in http://drupal.org/node/149044.

Anonymous’s picture

Status: Fixed » Closed (fixed)