You are here

function file_download_token_info in File Download 8

File

./file_download.module, line 126
.

Code

function file_download_token_info() {

  // Core tokens for nodes.
  $file['type'] = [
    'name' => t("File type"),
    'description' => t("The shortened version of the MIME definition e.g. pdf."),
  ];
  return [
    'tokens' => [
      'file' => $file,
    ],
  ];
}