Are there any plans to port this module to Drupal 7?

Comments

icecreamyou’s picture

Category: feature » task

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.

icecreamyou’s picture

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.

icecreamyou’s picture

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.

icecreamyou’s picture

Status: Active » Fixed

Just 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).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.