You are here

function uc_file_theme in Ubercart 8.4

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

Implements hook_theme().

File

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

Code

function uc_file_theme() {
  return [
    'uc_file_downloads_token' => [
      'variables' => [
        'file_downloads' => NULL,
      ],
      'file' => 'uc_file.tokens.inc',
      'function' => 'theme_uc_file_downloads_token',
    ],
    'uc_file_hook_user_file_downloads' => [
      'render element' => 'form',
      'file' => 'uc_file.theme.inc',
      'function' => 'theme_uc_file_hook_user_file_downloads',
    ],
    'uc_file_user_downloads' => [
      'variables' => [
        'header' => NULL,
        'files' => NULL,
      ],
      'function' => 'theme_uc_file_user_downloads',
    ],
  ];
}