Hi,
Attached is a patch to tidy up taxonomy_context.module for 4.7/HEAD. It includes some changes to bring it up to scratch:
* node_list is deprecated: http://drupal.org/node/22218#node_list
* node_load can be called with a single parameter of node id (nid): http://drupal.org/node/22218#node_load
* Form API!
I've also tidied some parts of the code up, including trailing whitespace, spaces after closing ?>, and using ' instead of " to delimit strings where applicable.
This has been tested briefly tonight, buts its running on my site so if anything else crops up I'll post it here. Please test and review!
Cheers.
| Comment | File | Size | Author |
|---|---|---|---|
| taxonomy_context_formsapi_and_47_tidy.patch | 31.81 KB | pfaocle |
Comments
Comment #1
pfaocleWhoops.
Comment #2
nedjoPaul,
Thanks very much for this. Please go ahead and apply the patch to CVS head. I have a number of additional changes I want to make (mainly, removing unneeded stuff), and will do so after you apply the patch.
Nedjo
Comment #3
pfaocleI don't have CVS access, unfortunately...
Comment #4
nedjoThanks, applied. Some further work needed (raising errors, maybe due to changes since this patch was generated), but this is a good start.
Comment #5
(not verified) commented