You are here

function filefield_token_list in FileField 5.2

Same name and namespace in other branches
  1. 6.3 filefield.token.inc \filefield_token_list()
  2. 6.2 filefield.module \filefield_token_list()

File

./filefield.module, line 914
Defines a file field type.

Code

function filefield_token_list($type = 'all') {
  if ($type == 'field' || $type == 'all') {
    $tokens = array();
    $tokens['file']['fid'] = t("File ID");
    $tokens['file']['description'] = t("File description");
    $tokens['file']['filename'] = t("File name");
    $tokens['file']['filepath'] = t("File path");
    $tokens['file']['filemime'] = t("File MIME type");
    $tokens['file']['filesize'] = t("File size");
    $tokens['file']['view'] = t("Fully formatted HTML file tag");
    return $tokens;
  }
}