With 4.7 coming up, it seemed like a good time to dive in with the links bundle. I've attached a patch that begins the work of updating the module for 4.7, though I don't yet understand some of the code enough to complete it yet.
The link settings forms should all be working, and the nodeapi 'attached links' form in links_related.module is now working and building properly. The sub-functions that handle validating, saving, and loading assorted links still need work however and most of those are in links.inc.
This patch is NOT ready for prime time, and should only be used as a starting point for further development -- I wanted to get it posted here sooner rather than later in case someone else is already working on, or considering working on, a 4.7 conversion for it.
Comment | File | Size | Author |
---|---|---|---|
#5 | links.module_admin_form.patch | 6.8 KB | drewish |
links_bundle.patch | 20.15 KB | eaton |
Comments
Comment #1
syscrusher CreditAttribution: syscrusher commentedEaton, you ROCK! I've been terribly busy, and was dreading the need to take this task on. I'm reviewing your patch now. Thank you!
Comment #2
syscrusher CreditAttribution: syscrusher commentedCommitted in CVS, and some additional conversion work done on the part you didn't have time to do. Again, THANKS so very much for this major contribution. You made my day!
Scott
Comment #3
syscrusher CreditAttribution: syscrusher commentedI should mention, by the way, that preliminary testing has this new code mostly working as it should. I found a couple of small bugs, and a couple of places I want to better exploit new API features, but overall, this is a big step forward.
Scott
Comment #4
eaton CreditAttribution: eaton commentedAwesome news! If there's anything I can do to help, let me know. I can imagine a number of applications where this API would be useful, and I'm only now just making the transition from weblinks.module.
Comment #5
drewish CreditAttribution: drewish commentedI've done a bit more on the admin/links form. Now it uses the whole _form()/_theme()/_execute() model.
I setup the basics to have get the themed table working right. I haven't gotten the execute part working because I don't have any links in my database (see my other patch to the weblink module). I'll start working on this again after I get that stright.
Comment #6
syscrusher CreditAttribution: syscrusher commentedI think this is all committed into CVS. Please grab the HEAD version and check to make sure I got the right version of your code, and that I didn't miss anything. Thanks very much for the contribs!
Scott
Comment #7
Steve Dondley CreditAttribution: Steve Dondley commentedI was looking into this problem myself. I'm not sure this patch is good probably should not have been applied. For one, it uses hook_execute which is a nodeapi hook, not for forms. For forms, hook_submit should be used.
Comment #8
syscrusher CreditAttribution: syscrusher commentedHi, folks.
Just wanted to let you know, I'm fighting a major problem with a production server. It may be another day or two before I get time to work on Drupal code, but I wanted to let you know I haven't vanished.
Scott (syscrusher)
Comment #9
syscrusher CreditAttribution: syscrusher commentedI'm baaaaaa---aaaaaack! Finally got that server migrated to the replacement machine, and will be working on this and other issues ASAP. Thanks for your patience.
Scott