You are here

function _commerce_file_translatables_tokenized in Commerce File 7

Tokenize the stored translated strings to be used in other t() calls

1 call to _commerce_file_translatables_tokenized()
commerce_file_permission in ./commerce_file.module
Implements hook_permission().

File

./commerce_file.module, line 567
Provides integration of file licenses with Commerce

Code

function _commerce_file_translatables_tokenized($token_prefix = '!') {
  $tokens = array();
  $trans = _commerce_file_translatables();
  foreach ($trans as $key => $t_string) {
    $tokens[$token_prefix . $key] = $t_string;
  }
  return $tokens;
}