/[drupal]/contributions/modules/temporary_invitation/temporary_invitation_api.inc
ViewVC logotype

Log of /contributions/modules/temporary_invitation/temporary_invitation_api.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Feb 5 13:30:48 2009 UTC (9 months, 3 weeks ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-5--2-3, DRUPAL-5--2-4, HEAD
Changes since 1.12: +2 -4 lines
Diff to previous 1.12
* Make it possible for modules to alter the email template and body.
* Streamline message template retrieval, and make it pluggable too.
* Update the copyright notices, and remove the amateur GPL header
  (drupal.org now explicitely states GPLv2+ anyways).

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 2 17:19:25 2009 UTC (9 months, 3 weeks ago) by jpetso
Branch: MAIN
Changes since 1.11: +5 -4 lines
Diff to previous 1.11
* Reduce code duplication by centralizing mail text replacements into a
  separate function. Also, reduce complexity by moving replacements out of
  the _temporary_invitation_get_message_template() function.
* Provide a token for the invitation creation date.
* Sort loaded arrays by creation date (newest first).

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Feb 2 13:41:44 2009 UTC (9 months, 3 weeks ago) by jpetso
Branch: MAIN
Changes since 1.10: +5 -4 lines
Diff to previous 1.10
Record and show the creation date of an invitation.

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Dec 14 19:06:55 2007 UTC (23 months, 2 weeks ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-5--2-1, DRUPAL-5--2-2
Changes since 1.9: +8 -5 lines
Diff to previous 1.9
Fix aliases for 'temporary-invitation' when they contain slashes.
'temporary-invitation-login' still doesn't work in that case.

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 5 15:16:47 2007 UTC (23 months, 3 weeks ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-5--2-0
Changes since 1.8: +20 -7 lines
Diff to previous 1.8
Two unrelated changes (forgot to commit the first one before starting the second):
* Change form callback signature & Co. so that the $destination parameter
  is not required anymore, takes the current page as default.
* Introduce an option "Don't assign roles to existing users".
* And update the .install file so that everything works like before.

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Nov 28 14:27:52 2007 UTC (2 years ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-5--2-0-RC7
Changes since 1.7: +8 -7 lines
Diff to previous 1.7
A better solution for the redirection problem.
Uses drupal_get_destination() instead of a fixed base path,
makes it possible to have the "temporary-invitation" path cached again,
and removes one more non-cached path while making it possible for
external themers to use the temporary_invitation_overview() function
and have it redirect correctly.
Whoo.

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Nov 28 13:24:50 2007 UTC (2 years ago) by jpetso
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6
Make it possible to also delete expired invitations. Ungh.

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Nov 21 14:48:58 2007 UTC (2 years ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-5--2-0-RC5, DRUPAL-5--2-0-RC6
Changes since 1.5: +10 -6 lines
Diff to previous 1.5
Pull the duration from the preview to the input form, so that the
expiration date can be displayed in the preview already.

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 15 23:36:33 2007 UTC (2 years ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-5--2-0-RC4
Changes since 1.4: +10 -10 lines
Diff to previous 1.4
Two changes that are functionally indifferent but improve the coding style:
* Make $mail an object instead of an array, more consistent this way.
* The return value of loginticket_login() is a user object, not a boolean.

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 15 21:26:13 2007 UTC (2 years ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-5--2-0-RC3
Changes since 1.3: +34 -1 lines
Diff to previous 1.3
* Token support also for the login target path.
* Fix the workflow-ng user argument handlers, as global $user is not
  always the host user. Instead, introduce two API functions that
  take care of determining the user.
* Rename the token type 'new_temporary_invitation' to
  'temporary_invitation_with_passcode', which fits better
  as it also applies to logins.

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 8 04:03:51 2007 UTC (2 years ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-5--2-0-RC1, DRUPAL-5--2-0-RC2
Changes since 1.2: +292 -88 lines
Diff to previous 1.2
Huge overhaul of the Temporary Invitation module.
It now works not only better and more usable, but also rather different.
Therefore, HEAD is being revived as 5.x-2.x development branch until 6.x-1.x opens.

The major change is that I was able to get rid of quite a few settings
in favor of letting users draft their invitation mails by themselves.
It is now compulsory to have mails sent to the invited entity, which
includes the nice feature of integrating login codes inside the mail
automatically. Additionally, there's a preview where the user can
have a look at the complete mail (amended with login information)
before sending it to the invitee.

That, and a freaking lot of other cool features:
* Multiple users can now send invitations to the same mail address.
  (Yeah, that was a pretty grave design bug in 5.x-1.x. Fixing it
   required to change the database schema a bit, so run update.php.)
* Users that already exist (from a mail address point of view)
  can now also be invited, and don't even get blocked/deleted
  when the invitation expires. Whoo!
* The admin form is so much more straightforward now.
  I also claim the same for the invitation management form.
* Support for direct login URLs in addition to the login form.
* The module now adapts also dynamic menu paths to aliases
  of the static (cached) paths. That is, http://example.org/my-login/123abc
* An additional 'login' op for hook_temporary_invitation().
* I surely forgot something. But well, you get the point :)

Make dead sure you run update.php, otherwise you're screwed.
Quite a lot of the configuration options will be deleted in the process,
but you'll soon recognize that you only needed those to work around
conceptual defiencies in 5.x-1.x.
Also, updating Login Ticket API is pretty much a good idea if
you want the "multiple invitations for the same person" feature,
or the 'login' op in the hook.

Really, I guess that was my largest commit message ever.
And rightly so. Hah. Like,
"Temporary Invitation 2.0: so much better than the first one."

Revision 1.1.2.8 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 15 15:58:19 2007 UTC (2 years, 5 months ago) by jpetso
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-10, DRUPAL-5--1-11
Changes since 1.1.2.7: +11 -5 lines
Diff to previous 1.1.2.7 , to branch point 1.1 , to next main 1.13
#149700: Don't display expired invitations.

Revision 1.1.2.7 - (view) (download) (as text) (annotate) - [select for diffs]
Wed May 16 14:28:47 2007 UTC (2 years, 6 months ago) by jpetso
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-7, DRUPAL-5--1-8, DRUPAL-5--1-9
Changes since 1.1.2.6: +27 -10 lines
Diff to previous 1.1.2.6 , to branch point 1.1
Major modifications in order to enable and implement notification mails
for invited users.

API changes:
- temporary_invitation_create() now returns an array with 'invitation'
  and 'passcode' keys, instead of a plain invitation object.
- temporary_invitation_create() and temporary_invitation_create_user()
  now take an optional $invited_user_additions parameter, which makes
  it possible to make use of additional columns in the {users} table.

User visible changes:
- Custom message strings have been removed from the user interface,
  because it would have grown too complex if they were kept.
  You can still have custom messages, but you need to take a look
  at the code and insert them manually into the database.
- Invited users can be chosen to receive notification mails,
  mail contents are customizable by the admin.
- Slight change of the method of selecting who receives notifications,
  and in which form.

Note that this requires running update.php, because some variables
have been deleted, renamed or replaced.

Revision 1.1.2.6 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 15 15:22:33 2007 UTC (2 years, 6 months ago) by jpetso
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-6
Changes since 1.1.2.5: +4 -1 lines
Diff to previous 1.1.2.5 , to branch point 1.1
Fix array_fill() warning. Thanks to drupal.org user the1who for testing
and reporting, and ambrielangel for providing another good hint.

Revision 1.1.2.5 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 11 13:03:47 2007 UTC (2 years, 6 months ago) by jpetso
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-5
Changes since 1.1.2.4: +31 -0 lines
Diff to previous 1.1.2.4 , to branch point 1.1
Move get_user_roles_default() and get_delete_action()
temporary_invitation_api.inc, so that the .inc file is self-contained.

Revision 1.1.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 11 12:57:50 2007 UTC (2 years, 6 months ago) by jpetso
Branch: DRUPAL-5
Changes since 1.1.2.3: +52 -23 lines
Diff to previous 1.1.2.3 , to branch point 1.1
Introduce hook_temporary_invitation() with possible $op values
'insert' and 'delete'. Make mail/message notification an
implementation of that hook, instead of being called separately.

Revision 1.1.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 14 15:31:50 2007 UTC (2 years, 7 months ago) by jpetso
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-3, DRUPAL-5--1-4
Changes since 1.1.2.2: +27 -1 lines
Diff to previous 1.1.2.2 , to branch point 1.1
Add array_fill_keys() and its dependency array_combine() for PHP versions
that don't provide them.

Revision 1.1.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Apr 12 11:34:30 2007 UTC (2 years, 7 months ago) by jpetso
Branch: DRUPAL-5
Changes since 1.1.2.1: +1 -1 lines
Diff to previous 1.1.2.1 , to branch point 1.1
#135682 by joeblow: Use drupal_get_path() in include_once().
Also, fix the $Id$ headers ("$Id $" is not recognized by CVS).

Revision 1.1.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 3 22:58:11 2007 UTC (2 years, 7 months ago) by jpetso
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-2
Changes since 1.1: +13 -10 lines
Diff to previous 1.1
Small improvements stemming from a code review by fago

Revision 1.2
Fri Mar 30 22:09:59 2007 UTC (2 years, 8 months ago) by jpetso
Branch: MAIN
Changes since 1.1: +0 -0 lines
FILE REMOVED
Remove files from HEAD, and only leave the README.txt pointing to the DRUPAL-5 branch.

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Mar 30 21:16:05 2007 UTC (2 years, 8 months ago) by jpetso
Branch: MAIN
CVS Tags: DRUPAL-5--1-0, DRUPAL-5--1-1
Branch point for: DRUPAL-5
Initial commit of the Temporary Invitation module. Enables site users to invite guests for a limited timespan, and deletes or blocks guest user accounts after the invitation has expired.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2