It will be good to set $node->nat during saving NAT to provide other modules which are using hook_nodeapi easy access to NAT terms.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | nat-set-node-nat-when-node-is-created-334165.patch | 1.25 KB | anantagati |
It will be good to set $node->nat during saving NAT to provide other modules which are using hook_nodeapi easy access to NAT terms.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | nat-set-node-nat-when-node-is-created-334165.patch | 1.25 KB | anantagati |
Comments
Comment #1
anantagati commentedAttached patch.
Comment #2
Zen commentedThe $node->nat overwrite in the 'update' case will also overwrite form data being used in the next line.
Can't other modules just use nat_get_terms? It's cached after all.. This'd also keep the form input intact for other (potential) modules as well.
Cheers,
-K
Comment #3
anantagati commentedOk, lets other modules use nat_get_terms().