Current date token

sammys - January 16, 2007 - 02:35
Project:Token
Version:5.x-1.4
Component:Code
Category:feature request
Priority:normal
Assigned:sammys
Status:closed
Description

Hi Jeff,

It would be handy to have the current date as a token. There will be two dates [site-current-date] and [user-current-date] allowing the a timezone adjustment. I've added them into my working copy. Will post patch if you agree this is a reasonable feature request.

Cheers,

--
Sammy Spets
Synerger
http://synerger.com

#1

sammys - January 19, 2007 - 10:57
Version:5.x-1.3» 5.x-1.4
Assigned to:Anonymous» sammys
Status:active» needs review

Here is a patch for it.

sammys

#2

sammys - January 19, 2007 - 10:58

Here is a patch for it. You may want to use format_date instead. *shrug*

sammys

AttachmentSizeStatusTest resultOperations
token.module.20070119.2157.patch.txt3.59 KBIgnoredNoneNone

#3

sammys - January 19, 2007 - 11:10

oops... you released a new version. patch for that _minus_ the 4.7 hook_help().

AttachmentSizeStatusTest resultOperations
token.module.20070119.2157.patch_0.txt1.13 KBIgnoredNoneNone

#4

sammys - January 19, 2007 - 12:18

New patch using format_date().

AttachmentSizeStatusTest resultOperations
token.module.20070119.2317.patch.txt1.73 KBIgnoredNoneNone

#5

eaton - March 10, 2007 - 21:25
Status:needs review» fixed

Now part of token.module. Thanks!

#6

Anonymous - March 24, 2007 - 21:30
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.