You are here

function commerce_file_theme in Commerce File 8.2

Same name and namespace in other branches
  1. 7.2 commerce_file.module \commerce_file_theme()
  2. 7 commerce_file.module \commerce_file_theme()

Implements hook_theme().

File

./commerce_file.module, line 22
Extends Commerce License with the ability to sell access to files.

Code

function commerce_file_theme() {
  return [
    'commerce_file_download_link' => [
      'variables' => [
        'file' => NULL,
        'description' => NULL,
        'attributes' => [],
      ],
    ],
  ];
}