Log of /contributions/modules/temporary_invitation/temporary_invitation_api.inc
Parent Directory
|
Revision Log
|
Revision Graph
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.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.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.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.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.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.
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.