Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I think it would be great to have token support for this module (if possible). I send out emails to users via Views Bulk Operations/Views Send and think it would be very handy to include a [login-one-time] token that would generate the link. Any chance this could be supported?
Comments
Comment #1
danielb CreditAttribution: danielb commentedI've never done this before, so let me just think out loud here...
Would that be sufficient?
I think I'll have to fix #852800: Compatibility with realname module first in case it changes things too much.
Comment #2
danielb CreditAttribution: danielb commentedI've added that. There is more that could be done like adding tokens to go to a specific page, etc... but I don't want to go nuts with it at this stage.
Comment #3
jeff.k CreditAttribution: jeff.k commentedThanks! I will be testing it later this week.
Comment #4
jeff.k CreditAttribution: jeff.k commentedWhen enabled it seems to throw an error
warning: Invalid argument supplied for foreach() in ....\sites\all\modules\token\token.module on line 385.
In looking at http://drupal.org/handbook/modules/token your code needs to be slightly altered
$tokens['login-one-time'] = t('Login one time link (Default path)');
should be
$tokens['user']['login-one-time'] = t('Login one time link (Default path)');
Comment #5
danielb CreditAttribution: danielb commentedoh ok, woops
Comment #6
danielb CreditAttribution: danielb commentedOK updated.
Comment #7
jeff.k CreditAttribution: jeff.k commentedThanks for the quick turnaround!