I sandboxed invite.module which is an API which mails one time URLs to users (existing and nonexisting as well). You can invite someone to register at the site, you can invite someone to join a group an event etc. etc.

Comments

kbahey’s picture

Name clash with the other invite module.

boris mann’s picture

chx, call it inviteapi or invite_api -- then the invite.module can be re-written using the API. I'm hoping you re-used ideas from there, it looks well done.

(and yes, event should really be event_api, and location should be location_api)

kbahey’s picture

That *_api.module is a very good idea. I thought that having *.inc would be better, but *_api.module is way better, since these can be contrib modules, and can be contained in their own subdirectory without having to copy stuff in includes directory.

+1.

adrian’s picture

I think we need the concept of 'libraries' in drupal.

IE: they are modules that won't show up on the module selection screen at all, and will just be enabled if needed / found.

drumm’s picture

Status: Needs review » Active

Reopen if the code comes back (it seems to have fallen in some sort of project module black hole).

chx’s picture

Status: Active » Closed (fixed)
darren oh’s picture

Tagged issue 68012 as a duplicate of this issue. By the way, the code is still available in the sandbox.