The token replacement always returns the value for [password_expiration_date:interval] even any other date format is selected, such as [password_expiration_date:short].

There is missing = in the hook_tokens() implementation. A patch follows in a few minutes.

Comments

ey’s picture

StatusFileSize
new626 bytes

Here's the patch. Please review.

ey’s picture

StatusFileSize
new537 bytes

Sorry, the previous patch created by PHPStorm does not follow Drupal standards. I've attached the same patch created with git diff.

  • AohRveTPV committed 8ce7ec1 on 7.x-2.x authored by pc-wurm
    Issue #2445831 by pc-wurm: incorrect token replacement if a date format...
aohrvetpv’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.