It would be great to have some sort of API for other modules to plug into. I disliked the bloated feeling I get from a module that just generates a page, so I started writing some code that would go into a normal Page with the PHP filter. I quickly realized I wanted to include stats from modules like Invite, Statistics, Kudos, Favorites, and Fivestar. I started thinking about writing my own module, since it would be far easier to give these modules an API to work with than to write the database queries for every module in the d.o repository.

But it seems like writing a new module would be a duplication of code, so I'm willing to extend HoF if I can. I know a moderate amount of MySQL and some basic PHP and very little about the structure of a Drupal module, but assuming I get some time it's about time I learned more.

In the meantime, I'm going to finish the MySQL queries I was writing for my own site; then I'll contribute the non-module-specific ones here, and I'll look into what's involved in creating an API.

Comments

icecreamyou’s picture

Status: Active » Postponed

I'm finding I don't have enough time to do this right now, but I might return to it later.