function date_token_list in Date 7
Same name and namespace in other branches
- 6.2 date/date_token.inc \date_token_list()
- 6 date/date_token.inc \date_token_list()
@file Token module integration.
File
- ./
date_token.inc, line 7 - Token module integration.
Code
function date_token_list($type = 'all') {
if ($type == 'field' || $type == 'all') {
$tokens = array();
$tokens['date']['value'] = t("The raw date value.");
$tokens['date']['view'] = t("The formatted date.");
$tokens['date']['timestamp'] = t("The raw date timestamp.");
$tokens['date']['yyyy'] = t("Date year (four digit)");
$tokens['date']['yy'] = t("Date year (two digit)");
$tokens['date']['month'] = t("Date month (full word)");
$tokens['date']['mon'] = t("Date month (abbreviated)");
$tokens['date']['mm'] = t("Date month (two digit, zero padded)");
$tokens['date']['m'] = t("Date month (one or two digit)");
$tokens['date']['ww'] = t("Date week (two digit)");
$tokens['date']['date'] = t("Date date (YYYY-MM-DD)");
$tokens['date']['datetime'] = t("Date datetime (YYYY-MM-DDTHH:MM:SS)");
$tokens['date']['day'] = t("Date day (full word)");
$tokens['date']['ddd'] = t("Date day (abbreviation)");
$tokens['date']['dd'] = t("Date day (two digit, zero-padded)");
$tokens['date']['d'] = t("Date day (one or two digit)");
$tokens['date']['dS'] = t("Date day (one or two digit) with ordinal suffix (st, nd, rd or th)");
$tokens['date']['time'] = t("Time H:i");
$tokens['date']['to-????'] = t("If the field has a to-date defined, the same tokens exist in the form: [to-????], where ???? is the normal token.");
return $tokens;
}
}