Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Yes, and I will probably have a D7 release before Drupal 7 itself is released. There is actually very little code that needs to be changed -- in fact the API probably works with D7 right now, it's just some of the UI bits that need upgrading.
Alright, I'm out of time for today, so it looks like I won't be getting a release out before D7 is itself released. However, I have run the module through Coder Upgrade and there are really only 3 changes that need to be made after that process:
the way the table of URLs is themed in the Record Shortened URLs submodule if Views isn't installed,
the way error messages are themed if there is a problem shortening a URL via a form, and
the file listing in the info files, which Coder seems to have screwed up for some reason.
Also, Drupal 7's drupal_http_request() is much more powerful than it was in D6, so I'd like to change shorten_fetch() to use it instead of creating a custom stream. But that's all there is to change, so a D7 release is pretty close, and I expect it to be just as stable as the D6 branch.
FYI, I've been working on this, and it ended up being a lot more complicated than I expected (as with most things...). I have everything working except the Shorten URLs form. AJAX forms and multi-step forms apparently don't work well together. But I'm expecting a release candidate by the end of this weekend.
Comments
Comment #1
icecreamyou commentedYes, and I will probably have a D7 release before Drupal 7 itself is released. There is actually very little code that needs to be changed -- in fact the API probably works with D7 right now, it's just some of the UI bits that need upgrading.
Comment #2
icecreamyou commentedAlright, I'm out of time for today, so it looks like I won't be getting a release out before D7 is itself released. However, I have run the module through Coder Upgrade and there are really only 3 changes that need to be made after that process:
Also, Drupal 7's drupal_http_request() is much more powerful than it was in D6, so I'd like to change shorten_fetch() to use it instead of creating a custom stream. But that's all there is to change, so a D7 release is pretty close, and I expect it to be just as stable as the D6 branch.
Comment #3
icecreamyou commentedFYI, I've been working on this, and it ended up being a lot more complicated than I expected (as with most things...). I have everything working except the Shorten URLs form. AJAX forms and multi-step forms apparently don't work well together. But I'm expecting a release candidate by the end of this weekend.
Comment #4
icecreamyou commentedJust committed code to the D7 branch and tagged a new release. It should be out any minute! Please test (and post any problems in new issues).