Hi,
Merging node form into one form, I had to drop the assumption that $form['node'] is an object. Included patch just checks if that element is an array or a node in you implementation of form_alter().
cheers,
TUc
| Comment | File | Size | Author |
|---|---|---|---|
| tl-node_as_array.patch | 710 bytes | TUc |
Comments
Comment #1
markus_petrux commentedhmm... The node module sets this as an object, I think. If someone else alters the form, it should respect the original format of the node, otherwise it can cause unexpected behaviors and/or errors in many other places where it is assumed that's a node object.
Could you please clarify who is changing $form['#node'] ?
Comment #2
markus_petrux commentedNot enough information.