function filefield_paths_token_info in File (Field) Paths 8
Same name and namespace in other branches
- 7 filefield_paths.tokens.inc \filefield_paths_token_info()
Implements hook_token_info().
File
- ./
filefield_paths.tokens.inc, line 13 - Tokens for the File (Field) Paths module.
Code
function filefield_paths_token_info() {
$info['tokens']['file']['ffp-name-only'] = [
'name' => t("File name"),
'description' => t("File name without extension."),
];
$info['tokens']['file']['ffp-name-only-original'] = [
'name' => t("File name - original"),
'description' => t("File name without extension - original."),
];
$info['tokens']['file']['ffp-extension-original'] = [
'name' => t("File extension - original"),
'description' => t("File extension - original."),
];
return $info;
}