Hi,

I'm the author of uc_product_keys and just recently discovered your module. In theory, if you abstract licensing properly, it should be possible for me to hook my module to yours. I noticed that you plan to freeze the API tomorrow (Dec 16). I went to look at the API, but couldn't find any API documentation. Is there documentation available?

I glanced at the code a bit and I suspect we may have problems integrating the two modules, but without precise API documentation, I can't say for sure. It's unlikely I'll have time to go through the code to figure out the API before tomorrow and I don't expect you would be able to produce any documentation in time—I'm just asking in case I missed the documentation.

Comments

nicksanta’s picture

Hi @freixas!

The 'freeze' was more or less the date the project I'm working on was being soft released. If there is interest, I'm more than happy to ditch the freeze for the time being.

I haven't made a hooks.php file yet, but licensing implements most (maybe all) of the hooks it invokes, and I've been fairly careful to document most functions in the module. If you have a look in licensing.module in the hooks section you can find them.

I'm actually really excited to have some more eyes on the code, it's always easy to develop a module with tunnel vision. But hopefully we can make something that is really useful.

freixas’s picture

Hello back!

My schedule is going to interfere with any attempt to merge the module quickly, I'm afraid. I have two modules right now with active work going on both (uc_addresses and uc_product_keys). Like you, I need to get the product keys module into a working site. It's going to be used to run a beta test on a software product I've written, so that's more work. And then these darn paying customers keep showing up!

Well, Rome wasn't built in a day. I was hoping there was an overview document I could read and enough detailed documentation for the hooks that I wouldn't have to read the code to decide exactly how a particular parameter is used. I can do it the other way, but it will just take me longer to get to it.

If you do write anything, please let me know.

nicksanta’s picture

The beginnings of the documentation has been committed - http://drupalcode.org/viewvc/drupal/contributions/modules/licensing/hook...

I'll keep adding things as I get time.

grasmash’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

The 6.x is no longer supported. Closing issue.