You are here

function uc_file_token_values in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_file/uc_file.module \uc_file_token_values()

Implementation of hook_token_values().

File

uc_file/uc_file.module, line 288
Allows products to be associated with downloadable files.

Code

function uc_file_token_values($type, $object = NULL) {
  switch ($type) {
    case 'uc_file':
      if (!empty($object)) {
        $values['file-downloads'] = theme('uc_file_downloads_token', $object);
      }
      break;
  }
  return $values;
}