Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Forked version of the Drupal token module
PHP JavaScript
branch: extra_date_tok…

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
translations
.gitignore
API.txt
LICENSE.txt
README.org
README.txt.orig
arrow-down.png
arrow-right.png
jquery.treeTable.css
jquery.treeTable.js
token.api.php
token.css
token.info
token.install
token.js
token.module
token.pages.inc
token.rules.inc
token.test
tokenSTARTER.info
tokenSTARTER.module
token_actions.info
token_actions.module
token_comment.inc
token_extra_date_tokens.patch
token_node.inc
token_taxonomy.inc
token_user.inc

README.org

Token module for drupal

Description

Token module provides a clean, safe and low maintenance way of using Drupal attributes, like post date, post autor, node id, etc, in your site.

Instead of enabling something like the PHP filter and mingling text and code you do it by using only text where there are strings enclosed in square brackets that represent particular attributes of your Drupal site. For example [node:nid] might represent the node ID. Thus instead of doing $node->nid after enabling the PHP filter you just insert the [node:nid] string and you’re done.

Here’s the drupal.org handbook page on the token module.

This version is a patched version of the module against the dev-version that provides additional date related tokens for nodes and comments.

  • AM/PM information
  • hour information - both 12 and 24 hour formats - with and without leading zeros
  • minute information
  • second information

Patch

The patch is included in the directory of the module.

Why haven’t you used the tokenSTARTER kit and roll out your own

Because I think that theses strings are quite useful and should, IMHO, be made part of the official release.

Something went wrong with that request. Please try again.