You are here

function filefield_paths_token_info in File (Field) Paths 7

Same name and namespace in other branches
  1. 8 filefield_paths.tokens.inc \filefield_paths_token_info()

Implements hook_token_info().

Return value

mixed

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'] = array(
    'name' => t("File name"),
    'description' => t("File name without extension."),
  );
  $info['tokens']['file']['ffp-name-only-original'] = array(
    'name' => t("File name - original"),
    'description' => t("File name without extension - original."),
  );
  $info['tokens']['file']['ffp-extension-original'] = array(
    'name' => t("File extension - original"),
    'description' => t("File extension - original."),
  );
  return $info;
}