function _date_token_list in Date 5
Same name and namespace in other branches
- 5.2 date/date_token.inc \_date_token_list()
@file Token module integration.
1 call to _date_token_list()
- date.module in ./
date.module - Defines a date/time field type.
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 (day of month)");
$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']['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;
}
}