function _date_token_list in Date 5.2
Same name and namespace in other branches
- 5 date_token.inc \_date_token_list()
@file Token module integration.
1 call to _date_token_list()
- date.module in date/
date.module - Defines date/time field types for the Content Construction Kit (CCK).
File
- date/
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']['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;
}
}