Currently when a node type editing form is submitted, some form values (such as 'op' and 'form_token') get saved to the variables table when they shouldn't, but also the form values themselves are unset which prevents any contrib module that adds _submit handler to the form from avtually getting the form values.

Attached patch tries to catch and unet all the extraneous values that should not be set, and also copies the form values to another array for use in the unset() operations.

This is a sub-part of the issues originally discussed here: http://drupal.org/node/88633

Comments

Jaza’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, same as in http://drupal.org/node/88633.

RTBC.

profix898’s picture

StatusFileSize
new1.33 KB

Almost the same patch as above, but I removed a few variables from the unset() array, because they are unset through 'if (isset($type->$key)) {...}' already. Otherwise patch looks good to me.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)