Create a Drupal 7 Token `date_plus_dates`

ปิด โพสต์แล้ว 5 ปีที่ผ่านมา ชำระเงินเมื่อจัดส่ง
ปิด ชำระเงินเมื่อจัดส่ง

I need a Drupal 7 Token (module) that would output me current date plus n days.

In php, I could get the date using `<?php $date = strtotime("+7 day"); echo date('d. M. Y', $date); ?>` (for 7 days offset), but I can’t make it work in Drupal 7.59.

I must be available in Available tokens dialogue, where there would a custom token group `date_plus_days`. The module itself would be named `date_plus_days` or `Date Plus Days`. I don’t care what the description would be (make it clear with example output).

Let me type `[date_plus_days:date_plus_days:#]` (where `#` is the offset int) as token. Ideally, it would be nice to have an option to define the date format from there, i.e. `[date_plus_days:date_plus_days:DATEFORMAT:#]` (just like we can in `[current-date:custom:DATEFORMAT]`), but should I choose between date format and offset integer, I choose offset integer and let the date format be hard-coded as `d. M. Y` (e.g. 01. 01. 2018).

Example output for today (12 Sep 2018) and 7-day offset: 19. 09. 2018

As for the price: how much would you like?

ออกแบบกราฟิก HTML PHP ออกแบบเว็บไซต์

หมายเลขโปรเจค: #17754933

เกี่ยวกับโปรเจกต์

2 ข้อเสนอ โปรเจกต์ระยะไกล ใช้งาน %project.latestActivity_relativeTime|แทนที่%

freelancer 2 คน กำลังเสนอราคาในงานนี้ โดยมีราคาเฉลี่ยอยู่ที่ €47

nvbhuvi

Hello sir give me link of code and site i will fix this custom token is working on this point please ping me back i am drupal expert Thanks

€34 EUR ใน 10 วัน
(2 รีวิว)
1.6
srivanikannan

I have around 12+yrs of experience in Drupal web application development (starting from Drupal 4.7 to Drupal 8.5). I have a strong expertise in Drupal8 specifically in module/theme development, data migration, REST A เพิ่มเติม

€60 EUR ใน 3 วัน
(0 รีวิว)
0.0